exit_order
Exit an open position by placing a market order in the opposite direction. Specify the order ID and product type to close the trade.
Instructions
Exit an open position by placing an opposite market order.
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": {
"order_id": "<order_id>",
"product_type": "<product_type>"
},
"name": "exit_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| product_type | Yes |