Close Position Order
close_position_orderCreates an order to sell all contracts held in a specified market, closing an existing position and updating live account state.
Instructions
LIVE ACCOUNT ACTION: Create an order to close an existing position in a market. This will sell all contracts held in the specified market. This operation may affect real funds or account state.
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": {
"body": "<body>"
},
"name": "close_position_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request to create an order to close a position |