close_position
Execute a market order to close an open trading position. Requires trade ID, exchange ID, and symbol.
Instructions
Close an open trading position. WARNING: This executes a market order to close your position.
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": {
"tradeId": "<tradeId>",
"exchangeId": "<exchangeId>",
"symbol": "<symbol>"
},
"name": "close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Trading pair (e.g. BTC/USDT) | |
| tradeId | Yes | Trade/position ID to close | |
| exchangeId | Yes | Exchange account ID where the position is open | |
| percentage | No | Percentage of position to close (100 = full close) |