Cannot place LIMIT_BUY orders
You are unable to create a LIMIT_BUY order. The response is always:
an exception occured - APIError(code=-1013): Filter failure: PERCENT_PRICE
Even with the "test_order" function.
Example:
order = client.create_test_order(
symbol='BNBBTC',
side=SIDE_BUY,
type=ORDER_TYPE_LIMIT,
timeInForce=TIME_IN_FORCE_GTC,
quantity=100,
price='0.00001')
response: an exception occured - APIError(code=-1013): Filter failure: PERCENT_PRICE
Example 2:
order = client.order_limit_buy(
symbol='ETHUSDT',
quantity=0.005,
price='98.20')
response: an exception occured - APIError(code=-1013): Filter failure: PERCENT_PRICE
Environment (please complete the following information):
- Python version: 3.7
- Virtual Env: n/a
- OS: Win 10 64 bit
- python-binance version latest (0.79)
Excuse my English, I'm using the translator
you have to consult the information of the symbol
get_symbol_info ("BNBBTC") ["filters"] [1]
{'filterType': 'PERCENT_PRICE', 'multiplierUp': '5', 'multiplierDown': '0.2', 'avgPriceMins': 5}
your price has to be in this range (Up / Down)
current price * 5 <= your price <= current price * 0.2
The current price of BNB is approximately 0.0051000
it would look like this
0.0051000 * 5 = 0.0255000 maximum price
0.0051000 * 0.2 = 0.00102 minimum price
I hope it helps you