BinanceSymbolFilter
See original GitHub issueUnless I’m missing something, the current implementation of BinanceSymbolFilter
makes them fairly useless, for example, how am I supposed to access the properties I need for Lot Size?
{
"filterType": "LOT_SIZE",
"minQty": "0.00100000",
"maxQty": "100000.00000000",
"stepSize": "0.00100000"
},
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Binance Order Filters - Crypto Exchange Python ...
The Market Lot Size filter defines rules around Market orders for a symbol. Remember lot relates to quantity and that's the base asset,...
Read more >Understanding Binance Trade Filters for Dummies
The Min Notional filter defines the minimum value calculated in the quote asset for a symbol. For our symbol BTCUSDT the quote symbol...
Read more >binance-spot-api-docs/filters.md at master
Filters define trading rules on a symbol or an exchange. Filters come in two forms: symbol filters and exchange filters . Symbol filters....
Read more >Binance Order Filters - Spot/Margin API
PRICE_FILTER tells you how many decimals price must have in your (limit/Stop-loss/OCO) orders? PERCENT_PRICE tells you the range your BUY_LIMIT/ ...
Read more >binance-api-node.Symbol.filters JavaScript and Node.js ...
Best JavaScript code snippets using binance-api-node.Symbol.filters(Showing top 2 results out of 315).
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
I see what you mean now.
BinanceSymbolFilter
is a base class and has 3 implementations:BinanceSymbolPriceFilter
,BinaceSymbolLotSizeFilter
andBinanceSymbolMinNotionalFilter
. You can get them from the list in a symbol using something likeFilters.OfType<BinanceSymbolLotSizeFilter>().FirstOrDefault()
.Currently there are no Commission helpers. What would you expect of these?
Hi, I’m not sure what the problem is? The values you pasted are the values which Binance will check your order on. It makes sure the order is a minimum of 0.001 in size, max 100000 and has has no more than 3 digits after the comma. If any of these check fails it will reject the order.
You should therefor make sure your order complies to these rules. You can either just do this yourself, use the helper function
ClampQuantity
inBinanceHelpers
, or set theTradeRulesBehaviour
in theBinanceClient
toAutoComply
to automatically apply the filters for you.