JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.03k stars 425 forks source link

Issue with FuturesUsdt.System.GetExchangeInfo #530

Closed scipius closed 3 years ago

scipius commented 3 years ago

I'm trying to get symbols for the USDT Futures market with FuturesUsdt.System.GetExchangeInfo

I'm receiving errors all of a sudden :

{: Deserialize JsonSerializationException: Error setting value to 'ContractType' on 'Binance.Net.Objects.Futures.MarketData.BinanceFuturesUsdtSymbol'. 00","baseAsset":"BTC","quoteAsset":"BUSD","marginAsset":"BUSD","pricePrecision":2,"quantityPrecision":3,"baseAssetPrecision":8,"quotePrecision":8,"underlyingType":"COIN","underlyingSubType":[],"settlePlan":0,"triggerProtect":"0.1500","filters":[{"minPrice":"0.01","maxPrice":"100000","filterType":"PRICE_FILTER","tickSize":"0.01"},{"stepSize":"0.001","filterType":"LOT_SIZE","maxQty":"1000","minQty":"0.001"},{"stepSize":"0.001","filterType":"MARKET_LOT_SIZE","maxQty":"500","minQty":"0.001"},{"limit":200,"filterType":"MAX_NUM_ORDERS"},{"limit":100,"filterType":"MAX_NUM_ALGO_ORDERS"},{"multiplierDown":"0.8500","multiplierUp":"1.1500","multiplierDecimal":"4","filterType":"PERCENT_PRICE"}],"orderTypes":["LIMIT","MARKET","STOP","STOP_MARKET","TAKE_PROFIT","TAKE_PROFIT_MARKET","TRAILING_STOP_MARKET"],"timeInForce":["GTC","IOC","FOK","GTX"]}]}}

Has something changed on Binance API side ?

JKorf commented 3 years ago

Seems they introduced some (undocumented) contract type values. I've pushed version 6.6.0, which should fix this issue.

deepthoughtlaplateforme commented 3 years ago

Hi it is missing new KeyValuePair<ContractType, string>(ContractType.NextMonth, "NEXT_MONTH"), Thanks

JKorf commented 3 years ago

Should be fixed in version 6.6.0

yalcingoben commented 3 years ago

Hi,

I updated last nuget package(6.6.0) on my app but it has still some error.

image image

Thanks for your help.

nikkozp commented 3 years ago

fixed #532

JKorf commented 3 years ago

6.6.1 is online, let me know if there are still issues.

scipius commented 3 years ago

Awesome, thanks for the quick update! Worked like a charm.

Issue can be closed 👍