wisespace-io / binance-rs

Rust Library for the Binance API
Other
671 stars 300 forks source link

Change string_or_float to accept INF #116

Closed chipshort closed 3 years ago

chipshort commented 3 years ago

Binance is using "INF" as a string for infinity. For example, when calling change_initial_leverage with a leverage of 1, the response will contain a max_notional_value of "INF". The current version fails with a decode error, so I added a check to the decoder.