Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Exception in thread "main" com.binance.api.client.exception.BinanceApiException: Filter failure: LOT_SIZE #5

Closed
bigcong opened this issue Dec 19, 2017 · 2 comments

Comments

@bigcong
Copy link

bigcong commented Dec 19, 2017

我在LTCBTC市场当中,调用limitSell方法的时候,当quantity=0.943752像这个数字,就会报上面的错误(Filter failure: LOT_SIZE),但是我如果将quantity=0.2的这样的数字,就可以。那么的问题来了,我如何才能获取LTCBTC的配置呢,例如最小数量位数,最小数量,最小金额,最小金额位数呢?

@joaopsilva
Copy link
Member

joaopsilva commented Dec 19, 2017

Hi, you can find the configuration for each symbol at https://www.binance.com/api/v1/exchangeInfo. I will add this endpoint to the API soon, so you can fetch the configuration for each symbol programatically through the API.

@joaopsilva
Copy link
Member

I've added support for the exchangeInfo endpoint, and you can now query lot size information through the API, please refer to the the GeneralEndpointsExample class.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants