position_close
Close a trading position partially or fully by specifying quantity or percentage.
Instructions
Close all or part of one position by quantity or percentage.
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": {
"account": "<account>",
"symbol": "<symbol>"
},
"name": "position_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | ||
| agent | No | mcp | |
| symbol | Yes | ||
| account | Yes | ||
| percent | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |