Hi,
Last night I started receiving multiple random {"code":-1013,"msg":"Filter failure: NOTIONAL"}
regarding some of my market orders. Time in the logs is UTC.
07/31/2023 19:42:18 - INFO - STRATEGY BUY 0.428 x MLNUSDT @ 23.93
07/31/2023 19:42:18 - ERROR - Request error: 400 - {"code":-1013,"msg":"Filter failure: NOTIONAL"}
The notional filter for MLNUSDT is:
{'symbol': 'MLNUSDT',
'baseAsset': 'MLN',
'quoteAsset': 'USDT',
'baseAssetPrecision': 8,
'quoteAssetPrecision': 8,
'quoteOrderQtyMarketAllowed': True,
'LOT_SIZE': {'stepSize': 0.001, 'minQty': 0.001, 'maxQty': 9222449.0},
'MARKET_LOT_SIZE': {'stepSize': 0.0, 'minQty': 0.0, 'maxQty': 1687.7079125},
'NOTIONAL': {'minNotional': 10.0,
'maxNotional': 9000000.0,
'applyMinToMarket': True,
'applyMaxToMarket': False}}
As you can see, all LOT_SIZE, MARKET_LOT_SIZE and NOTIONAL filters can be passed without a problem as:
notional = 0.428 * 23.93 = 10.24204 > 10.0
quantity > minQty from LOT_SIZE
Here’s another failed order due to the same reason:
07/31/2023 20:14:01 - INFO - STRATEGY BUY 49.9 x ALPACAUSDT @ 0.2054
07/31/2023 20:14:01 - ERROR - Request error: 400 - {"code":-1013,"msg":"Filter failure: NOTIONAL"}
{'symbol': 'ALPACAUSDT',
'baseAsset': 'ALPACA',
'quoteAsset': 'USDT',
'baseAssetPrecision': 8,
'quoteAssetPrecision': 8,
'quoteOrderQtyMarketAllowed': True,
'LOT_SIZE': {'stepSize': 0.1, 'minQty': 0.1, 'maxQty': 92141578.0},
'MARKET_LOT_SIZE': {'stepSize': 0.0,
'minQty': 0.0,
'maxQty': 416704.76291666},
'NOTIONAL': {'minNotional': 10.0,
'maxNotional': 9000000.0,
'applyMinToMarket': True,
'applyMaxToMarket': False}}
What could really be the issue? May it be caused by a sudden drop in symbol price right at the moment when I place the orders, thus notional value falls below the limit?