place_order
Place an order. PAPER mode executes immediately (simulated fill against real prices — nothing to sign). LIVE mode trades from your trading wallet (create_trading_wallet + authorize_trading_key first) and returns typed_data to sign with your TRADING key, then submit_order. Fees: 0.25% per perps trade, the same everyone pays, settled automatically. Brackets: pass tp/sl. Sizing: explicit size, or risk-first via risk_usd+stop_price (size = risk / |entry−stop|). Min notional $10.
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": {
"market": "<market>",
"side": "<side>",
"type": "<type>"
},
"name": "place_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sl | No | Stop-loss trigger price in USD (optional reduce-only bracket) | |
| tp | No | Take-profit trigger price in USD (optional reduce-only bracket) | |
| side | Yes | buy = go long (or reduce a short); sell = go short (or reduce a long) | |
| size | No | Size in coins, e.g. 0.01 for BTC. Omit it to size by risk_usd + stop_price instead | |
| type | Yes | market = fills now at a protected price; limit = rests at limit_price | |
| market | Yes | Symbol, e.g. BTC | |
| risk_usd | No | Risk-first sizing: dollars at risk to the stop | |
| stop_price | No | Required with risk_usd; also becomes the SL | |
| limit_price | No | Limit price in USD; required when type is limit | |
| reduce_only | No | true = this order can only reduce an existing position, never open or flip one | |
| client_order_id | No | Idempotency key |