wisespace-io / binance-rs

Rust Library for the Binance API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Step Size

KivalM opened this issue · comments

With this API, there does not seem to be a way of determining the step size for certain tokens. Sometimes i recieve LOT_SIZE error, and from my research this has to do with binance only allowing certain purchase amounts for certain tokens. At the moment i am rounding off to a fixed 6 decimals but i know that this will not apply for everything and i will come across issues eventually.

This is the API reference for the feature i am referring to
https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#lot_size

general::Get_symbol_info was what i needed