You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPIExtensions.cs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,7 @@ public static async Task<Dictionary<string, ExchangeMarket>> GetExchangeMarketDi
244
244
/// The order book is scanned until an amount of bids or asks that will fulfill the order is found and then the order is placed at the lowest bid or highest ask price multiplied
245
245
/// by priceThreshold.
246
246
/// </summary>
247
-
/// <param name="symbol">Symbol to sell</param>
247
+
/// <param name="marketSymbol">Symbol to sell</param>
248
248
/// <param name="amount">Amount to sell</param>
249
249
/// <param name="isBuy">True for buy, false for sell</param>
250
250
/// <param name="orderBookCount">Amount of bids/asks to request in the order book</param>
@@ -254,7 +254,7 @@ public static async Task<Dictionary<string, ExchangeMarket>> GetExchangeMarketDi
254
254
/// This ensures that your order does not buy or sell at an extreme margin.</param>
255
255
/// <param name="abortIfOrderBookTooSmall">Whether to abort if the order book does not have enough bids or ask amounts to fulfill the order.</param>
thrownewAPIException($"Error getting order book for {symbol}");
276
+
thrownewAPIException($"Error getting order book for {marketSymbol}");
277
277
}
278
278
decimalcounter=0m;
279
279
decimalhighPrice=decimal.MinValue;
@@ -306,11 +306,11 @@ public static async Task<ExchangeOrderResult> PlaceSafeMarketOrderAsync(this Exc
306
306
}
307
307
if(abortIfOrderBookTooSmall&&counter<amount)
308
308
{
309
-
thrownewAPIException($"{(isBuy?"Buy":"Sell") } order for {symbol} and amount {amount} cannot be fulfilled because the order book is too thin.");
309
+
thrownewAPIException($"{(isBuy?"Buy":"Sell") } order for {marketSymbol} and amount {amount} cannot be fulfilled because the order book is too thin.");
310
310
}
311
311
elseif(lowPrice/highPrice<thresholdToAbort)
312
312
{
313
-
thrownewAPIException($"{(isBuy?"Buy":"Sell")} order for {symbol} and amount {amount} would place for a price below threshold of {thresholdToAbort}, aborting.");
313
+
thrownewAPIException($"{(isBuy?"Buy":"Sell")} order for {marketSymbol} and amount {amount} would place for a price below threshold of {thresholdToAbort}, aborting.");
0 commit comments