binance_test_order
Validate a Binance order against exchange filters before placing it, catching precision and rule errors without sending it to the order book. Confirms the order would pass, preventing failed real orders.
Instructions
Validate an order against Binance's filters WITHOUT sending it to the order book.
Calls POST /api/v3/order/test (SIGNED, IP weight 1 — 20 with
compute_commission_rates). Binance runs the same validation as a real placement
(signature, recvWindow, symbol status, LOT_SIZE / PRICE_FILTER / NOTIONAL, balance
rules) and returns {} on success: nothing is matched, nothing rests on the book,
no funds move.
This tool is always allowed. It is on the client's POST_READ_ALLOWLIST, so it
works with the trading kill-switch off (BINANCE_ALLOW_TRADING unset) — which makes
it the right first step before every binance_place_order call.
When to Use:
Always, immediately before placing a real order, to catch a filter or precision error for free.
With
compute_commission_rates=trueto learn the fee rates that would apply.
When NOT to Use:
To actually trade — that is
binance_place_order.To check a symbol's filters in the abstract —
binance_get_exchange_info(market_data.py) lists tick size, step size and min notional directly.
Returns:
A confirmation that the order passed validation (and the commission-rate breakdown
when requested). A rejection comes back as an Error: line quoting Binance's reason.
Examples: params = {"symbol": "BTCUSDT", "side": "BUY", "type": "LIMIT", "time_in_force": "GTC", "quantity": "0.001", "price": "20000.00"} params = {"symbol": "BTCUSDT", "side": "SELL", "type": "MARKET", "quantity": "0.001", "compute_commission_rates": True}
Error Handling:
-1013/-2010 point at a symbol filter (step size, tick size, min notional); -1111 is a
precision error — check binance_get_exchange_info. -2015 means the key lacks Spot
Trading permission or this IP is not allowlisted. The per-type mandatory parameter
sets are checked locally, so those failures never reach Binance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |