position_close_all
Liquidate every open position in an account at current market prices to fully exit the market or reset a portfolio.
Instructions
Liquidate every open position in an account at current market prices.
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>"
},
"name": "position_close_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | mcp | |
| account | Yes | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |