Close a position
positions_closeClose a perpetual futures position using a reduce-only MARKET order: omit quantity to exit fully, specify it for a partial close, and set dry_run=true to preview the payload.
Instructions
Close a position with a reduce-only MARKET order. Omit quantity to close the full position; pass quantity for a partial close. Perpetual futures only — use predict_close for Orderly Predict. Preview with dry_run=true.
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>"
},
"name": "positions_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | symbol | |
| account | No | Account ID (auto-resolves if single account) | |
| dry_run | No | Print the request payload without signing or sending it | |
| network | No | Network override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config. | |
| quantity | No | Partial close quantity (default: full position) |