Preflight a trade
preflight_tradeVet orders against live Binance market data before execution. Returns CLEARED, REFUSED, or UNREADABLE (treat as refusal) with spread, slippage, quote age, and position size to block unsafe trades.
Instructions
Decide whether an order should be placed, BEFORE placing it. Returns CLEARED, REFUSED or UNREADABLE with the numbers behind the answer: spread, expected slippage against the live book, quote age, position size, and venue filters. UNREADABLE means the market data could not be established — treat it as a refusal, not as permission. Call this before every order placed by an execution tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| symbol | Yes | Venue symbol, e.g. BTCUSDT | |
| quantity | Yes | Size in the base asset, e.g. 0.01 for BTC | |
| limitPrice | No | Limit price. Omit for a market order. | |
| quoteBalance | No | Free balance in the quote asset. Supply it and the position-size rule applies; omit it and that one rule is skipped rather than guessed at. |