place_and_verify
Place an order with automatic fill verification, classify expected errors, and record audit events to prevent phantom orders on failed or uncertain submissions.
Instructions
Place an order with automatic fill verification, error classification, and audit logging. Returns a LifecycleResult — never throws for expected failures (zero liquidity, insufficient funds). Submission states: 'accepted' (order on exchange), 'rejected' (exchange rejected), 'unknown' (transport error). For IOC/FOK that can't match, returns rejected with ZERO_LIQUIDITY — no phantom order created. For GTC that crosses the spread, returns filled with trades inline. All events are appended to the audit log.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instrument_name": "<instrument_name>",
"direction": "<direction>",
"amount": "<amount>",
"limit_price": "<limit_price>"
},
"name": "place_and_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional label | |
| amount | Yes | Order amount (in contracts) | |
| max_fee | No | Maximum fee willing to pay (USDC) | 100 |
| direction | Yes | Order direction | |
| order_type | No | Order type | limit |
| limit_price | Yes | Limit price (in USD) | |
| reduce_only | No | Reduce-only order | |
| subaccount_id | No | Subaccount ID (defaults to configured) | |
| time_in_force | No | Time in force | gtc |
| instrument_name | Yes | Instrument (e.g., ETH-PERP, ETH-20260327-3000-C) |