close_position
Liquidate an entire stock position for a symbol by placing a market order to sell long shares or buy back shorted shares.
Instructions
Close an entire position for a symbol.
Args: symbol: Stock symbol to close position for
Places a market order to sell (for long) or buy (for short) all shares of the 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": {
"symbol": "<symbol>"
},
"name": "close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||