atas_close_position
Flatten an open position using a market order, automatically calculating the opposite direction and full volume when not specified.
Instructions
Flatten the current position using a market order. If volume and direction are omitted, the strategy automatically calculates the opposite direction and entire volume to close the position completely.
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": "atas_close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| volume | No | ||
| direction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||