Igosuki / binance-rs-async

Async client for the Binance APIs
https://crates.io/crates/binance-rs-async
Other
187 stars 116 forks source link

NOT working - get_exchange_info #108

Closed yongkangc closed 9 months ago

yongkangc commented 10 months ago

The types for get_exchange_info has stopped working with the following error:

Err(ReqError(reqwest::Error { kind: Decode, source: Error("unknown variant `CURRENT_QUARTER DELIVERING`, expected one of `PERPETUAL`, `CURRENT_MONTH`, `NEXT_MONTH`, `CURRENT_QUARTER`, `NEXT_QUARTER`, ``", line: 1, column: 246483) }))

This is due to the binance response mixing contractStatus and contractType

image

And the ContractType structs does not account for this particular response.

API Url: https://fapi.binance.com/fapi/v1/exchangeInfo

Igosuki commented 9 months ago

Ok, I'm merging your PR, but this seems like an error on their end because this looks like invalid data