iilunin / crypto-bot

Binance crypto bot which supports smart entry, trailing stop-losses and take profits, multiple exit targets, One-Cancels-the-Other functionality, UI Interface
Apache License 2.0
247 stars 51 forks source link

APIError(code=-1013): Filter failure: MIN_NOTIONAL #18

Closed Eimuex closed 3 years ago

Eimuex commented 3 years ago

Got new issue. It seems like this one https://github.com/iilunin/crypto-bot/issues/5 , but I don’t know how to solve it. Tried to edit active json file to exact number of decimals, but didn’t work. Is there any workaround? Thanks

File "/usr/src/app/Bot/Strategy/EntryStrategy.py", line 83, in execute self.handle_smart_target(trigger_order_price, price) File "/usr/src/app/Bot/Strategy/EntryStrategy.py", line 105, in handle_smart_target self.handle_stoploss_order(trigger_order_price, current_price) File "/usr/src/app/Bot/Strategy/EntryStrategy.py", line 183, in handle_stoploss_order volume=self.exchange_info.adjust_quanity(vol) File "/usr/src/app/Bot/FXConnector.py", line 151, in create_stop_order price=FXConnector.format_number(price)) File "/usr/local/lib/python3.7/site-packages/binance/client.py", line 1149, in create_order return self._post('order', True, data=params) File "/usr/local/lib/python3.7/site-packages/binance/client.py", line 210, in _post return self._request_api('post', path, signed, version, kwargs) File "/usr/local/lib/python3.7/site-packages/binance/client.py", line 181, in _request_api return self._request(method, uri, signed, kwargs) File "/usr/local/lib/python3.7/site-packages/binance/client.py", line 176, in _request return self._handle_response(response) File "/usr/local/lib/python3.7/site-packages/binance/client.py", line 200, in _handle_response raise BinanceAPIException(response) binance.exceptions.BinanceAPIException: APIError(code=-1013): Filter failure: MIN_NOTIONAL

iilunin commented 3 years ago

That's information from the Binance API:

The MIN_NOTIONAL filter defines the minimum notional value allowed for an order on a symbol. An order's notional value is the price * quantity.

It means that your order is too small to proceed.