Order rejected? The most common Binance, OKX, Bybit and MT5 errors and how to fix them
Most rejected orders break one of five rules: size is not a whole number of steps, size is below the minimum, order value is too small, price is not a whole number of ticks, or too many decimals were sent. Read the symbol's limits from the exchange, round down to the step, and check the minimum before sending. The table below links to the fix page for each error.
The five rules behind most rejections
An exchange checks every order against rules for that symbol. These rules come from the exchange's own data (Binance exchangeInfo, OKX /api/v5/public/instruments, Bybit instruments info, MT5 symbol properties). Most "errors" are one of five things:
| Rule | Binance | OKX | Bybit | MetaTrader 5 |
|---|---|---|---|---|
| Size is not a whole number of steps | Filter failure: LOT_SIZE (-1013) | 51121 | 170137 (volume decimals) | 10014 invalid volume |
| Size below the minimum | LOT_SIZE minQty | 51020 | 170136 | 10014 (SYMBOL_VOLUME_MIN) |
| Order value (price x size) too small | NOTIONAL, futures -4164 | - | 170140 | - |
| Price not a whole number of ticks | PRICE_FILTER | tickSz | 170134 / 170133 | - |
| Too many decimals sent | -1111 BAD_PRECISION | 51121 | 170134 / 170137 | - |
| Stops too close / wrong filling mode | - | - | - | 10016, 10030 |
The fix that solves most of them
Read the symbol's step, minimum and tick from the exchange, round down to the step, then check the minimum and the order value before you send. Do not round to a number of decimals: a step of 0.00001 is not the same as "5 decimals" on every symbol. Never round up, because that can push you past your balance or the maximum. Send numbers as strings so a float does not add digits. Example in plain Python (standard library only):
from decimal import Decimal, ROUND_DOWN
def floor_to_step(value, step):
v, s = Decimal(str(value)), Decimal(str(step))
return (v / s).to_integral_value(ROUND_DOWN) * s
qty = floor_to_step("0.123456789", "0.00001") # BTCUSDT step in our data
print(qty) # 0.12345
Why a small account hits these more
If you size a trade as "1% of the account", a small balance gives a quantity under the minimum, so the order is rejected (OKX 51020, Bybit 170136, Binance NOTIONAL). The right answer is to skip the trade or raise the size on purpose, not to retry in a loop.
Check before you send, or look up a code
- Paste an order into the free order check: it shows which Binance, OKX or MT5 rule it breaks and the nearest values that pass.
- Paste an error text into the error explainer (2,368 official MT5, Binance, Bybit and OKX codes). If a code is not in the official list it says so instead of guessing.
- AI assistants can use the same checks through the free AIKIT connector.
Sources: Binance Spot API docs (filters, errors); Binance USD-M futures error codes; OKX API v5 docs; Bybit V5 error codes; MQL5 documentation, trade server return codes. Official pages opened 16 November 2026 for the fix pages linked above.