"Filter failure: LOT_SIZE"
See original GitHub issueThere should be a way to handle this from within the library to make it easier for a novice developer.
Suggestioin :
order_volume.toFixed(3).slice(0,-1)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Why am I getting 'Filter failure: LOT_SIZE' error in all my post ...
In brief, lot size defines the minimum quantity per trade and min notional specifies the minimum total payout (quantity * price) of the...
Read more >python-Binance api: APIError(code=-1013): Filter failure
This error appears because you are trying to create an order with a quantity lower than the minimun required.
Read more >ERROR: -1013, Filter failure: LOT_SIZE · Issue #7 - GitHub
When I try to place an order I get this error: com.webcerebrium.binance.api.BinanceApiException: ERROR: -1013, Filter failure: LOT_SIZE How ...
Read more >Binance API return Error: Filter failure: LOT_SIZE
The LOT_SIZE filter defines the quantity (aka "lots" in auction terms) rules for a symbol. There are 3 parts: minQty defines the minimum...
Read more >Binance Error Codes - HyperTrader
Filter failure: PERCENT_PRICE. price is X% too high or X% too low from the average weighted price over the last Y minutes. Filter...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@azharuniverse Each currency pair has own LOT_SIZE so there is no universal solution - only to get current lot_size (from ‘api/v1/exchangeInfo’ it would be =>
response.data.symbols['SUBBTC'].filters['index of filter with type LOT_SIZE'].minQty
for each pair from Binance. Also I dont know for what you are usingslice(0,-1)
here.order_volume.toFixed(2)
will return the same.P.S. I think such things should handle Binance itself - to maximize amount of success calls. For my opinion most buy request don’t need to calculate quantity of coin which user wants to buy - It would be much better to have possibility to set BTC, ETH, USDT, etc anount and buy coins with market price
Buy some BNB then you only get charged commission in BNB (and it lowers your fees to .05% instead of .25% like most exchanges)
I do the same thing with my binance bot that I do with all my other bots
if ( order_qty > available_balance ) order_qty = available_balance;