question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Filter failure: LOT_SIZE"

See original GitHub issue

There 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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
GeorgeMurAlkhcommented, Jan 21, 2018

@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 using slice(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

1reaction
jaggedsoftcommented, Jan 21, 2018

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;

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found