Close all positions (sells everything)
close_all_positions⚠️ Irreversible: this sells every active position for the user and cannot be undone. Close all active/pending positions for a user
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 |
|---|---|---|---|
| userId | No | The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me). |