check_order
Run a non-mutating pre-trade dry-run to verify if an order would pass risk checks or be rejected. Reports reasons without placing an order or reserving funds.
Instructions
Run a non-mutating pre-trade dry-run for an order: report whether it would pass the engine's risk checks plus the reasons (would-be lock prices on pass, structured rejects and any would-be account block on reject). Submits nothing and changes no state - no order is placed, no funds are reserved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | buy or sell | |
| price | No | Limit price as an exact decimal string; omit for market/unpriced | |
| account | Yes | Account code | |
| baseAsset | Yes | Asset being bought or sold | |
| amountKind | Yes | quantity or volume | |
| quoteAsset | Yes | Asset used for pricing | |
| amountValue | Yes | Order size as an exact decimal string |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| passed | Yes | ||
| rejects | Yes | ||
| wouldBlock | Yes | ||
| wouldDisplayPrice | Yes |