close_position
Close open trading positions fully or partially. Provide position ID or symbol; set quantity for partial close.
Instructions
Close a trading position (full or partial).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | Partial close quantity (omit for full close) | |
| symbol | No | Symbol if position_id omitted | |
| position_id | No | Position id (often the symbol) |