Place spot order
place_spot_orderPlace paper spot orders for crypto with market, limit, or stop types. Requires a unique idempotency key to prevent duplicate execution during retries.
Instructions
Place a paper spot order. coinId is a coin UCID, NOT a ticker. orderType market/limit/stop. limitPrice required for limit & stop; stopPrice required for stop. idempotencyKey is REQUIRED and unique per intent (reuse replays the original result — retry a timed-out call with the SAME key; it will never double-execute). Requires the trade:spot scope. CONFIRM with the user before calling. Paper trading only (virtual mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Spot side: buy spends USDT; sell spends the base coin. | |
| coinId | Yes | Coin UCID (e.g. "1" = BTC). | |
| quantity | Yes | Base-coin amount (> 0). | |
| orderType | Yes | Order execution type: market, limit, or stop. | |
| stopPrice | No | USD trigger — required for stop. | |
| agentTrace | No | Optional private trace metadata stored in the caller's ledger. | |
| limitPrice | No | USD/coin — required for limit & stop. | |
| idempotencyKey | Yes | Unique per intent; reuse replays the original result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| body | No | ||
| httpStatus | Yes | ||
| ledgerStatus | No | ||
| ledgerEventId | No |