prepare_order
Prepare a spot trading order by validating parameters and requiring explicit user confirmation before execution.
Instructions
STEP 1 of 2 to place a spot order. Validates everything against live exchange data and returns a confirmation token — NO order is sent.
Parameters (all numeric values as strings, exactly as they should reach the exchange):
side: 'BUY' or 'SELL'. order_type: 'LIMIT' or 'MARKET'.
LIMIT: requires price + size (base units).
MARKET BUY: requires amount (quote currency to spend, e.g. USDT).
MARKET SELL: requires size (base units to sell).
After this returns, show the summary to the user and only call confirm_action with the token once they explicitly approve.
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": {
"symbol": "<symbol>",
"side": "<side>",
"order_type": "<order_type>"
},
"name": "prepare_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ioc | No | ||
| side | Yes | ||
| size | No | ||
| price | No | ||
| amount | No | ||
| symbol | Yes | ||
| order_type | Yes | ||
| client_order_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |