close_position
Close a specific trading position by placing a sell order for a symbol. The order executes immediately during market hours or queues for the next market open.
Instructions
Closes a specific position for a single symbol by placing a sell order. If the market is closed, the sell order will remain queued and execute at the next market open.
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": {
"symbol_or_asset_id": "<symbol_or_asset_id>"
},
"name": "close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | the number of shares to liquidate. Can accept up to 9 decimal points. Cannot work with percentage | |
| percentage | No | percentage of position to liquidate. Must be between 0 and 100. Would only sell fractional if position is originally fractional. Can accept up to 9 decimal points. Cannot work with qty | |
| symbol_or_asset_id | Yes | symbol or assetId |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||