-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRXBTC symbol for 1M has negative volume #83
Comments
@sguryev, thanks for reporting the exception. I have asked if the data is valid on the official API Telegram. Although, I can't imagine what a negative volume would represent if it is valid data. |
@sonvister absolutely agree with you. I'm getting a bunch of symbols for 1M using |
UPDATE: The query (https://api.binance.com/api/v1/klines?symbol=TRXBTC&interval=1M) still returns a negative volume.... |
Binance/src/Binance/Market/Candlestick.cs
Line 134 in da2967a
Reprosteps:
await _binanceApi.GetCandlesticksAsync("TRXBTC", CandlestickInterval.Month);
Json:
Inner exception:
Candlestick: volume must not be less than 0. Parameter name: volume
StackTrace: at Binance.Candlestick..ctor(String symbol, CandlestickInterval interval, DateTime openTime, Decimal open, Decimal high, Decimal low, Decimal close, Decimal volume, DateTime closeTime, Decimal quoteAssetVolume, Int64 numberOfTrades, Decimal takerBuyBaseAssetVolume, Decimal takerBuyQuoteAssetVolume)
at Binance.Serialization.CandlestickSerializer.<>c__DisplayClass14_0.b__0(JToken item)
at System.Linq.Enumerable.SelectIListIterator
2.ToArray() at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source)at Binance.BinanceApi.d__26.MoveNext()
The text was updated successfully, but these errors were encountered: