close_all_positions
Close all open positions and cancel pending orders to liquidate the entire portfolio. Returns count of closed positions.
Instructions
Close all open positions.
Use with extreme caution - this will liquidate your entire portfolio. Also cancels all open orders.
Returns count of positions closed.
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_all_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||