Rama
July 16, 2024, 7:44am
1
Hello guys ,
When I try to create a Trailing stop order I get APIError(code=-1013): Filter failure: NOTIONAL
This example is for BTC:
client.create_order(
symbol=token,
quantity=(volume[token]),
type=‘STOP_LOSS_LIMIT’,
side=‘SELL’,
price=30000,
trailingDelta=250,
timeInForce=‘GTC’)
If I remove trailingDelta , I get another error so clearly the error is with trailingDelta .
Some ideas?
Thanks,
ilammy
July 16, 2024, 10:53am
2
NOTIONAL filter restricts the notional value of the order (price × quantity). Please check that it’s within the limits. You can see the current filter configuration by querying GET /api/v3/exchangeInfo?symbol=${symbol}
, e.g.
curl 'https://api.binance.com/api/v3/exchangeInfo?symbol=BTCUSDT'
{
"filterType": "NOTIONAL",
"minNotional": "5.00000000",
"applyMinToMarket": true,
"maxNotional": "9000000.00000000",
"applyMaxToMarket": false,
"avgPriceMins": 5
}
The other error you see is likely about missing parameter as STOP_LOSS_LIMIT orders require either trailingDelta
or stopPrice
(see New order ).
1 Like
Rama
July 16, 2024, 2:12pm
3
Hello ilammy, you are pretty right … Notional was out of the limits
Many thanks for your help and time.