Trailing Stop error APIError(code=-1013): Filter failure: NOTIONAL

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,

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

Hello ilammy, you are pretty right … Notional was out of the limits :slight_smile:

Many thanks for your help and time.