Propose close-all
propose_close_all_positionsAPPROVAL CARD ONLY — NEVER auto-executed: propose flattening EVERY open position at once (or one venue/pair scope) for in-app approval. Records the proposal only — no order is placed, nothing is cancelled. Needs the trade:propose scope (PAT).
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": {
"rationale": "<rationale>"
},
"name": "propose_close_all_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | No | Optional pair filter (e.g. BTC/USDT) — flatten only this market. Omit for everything. | |
| exchange | No | Optional CEX slug to flatten one venue only. Omit for every connected venue. | |
| rationale | Yes | Why flatten now | |
| order_type | No | Default market. | |
| limit_price | No | Required for order_type=limit. |