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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| volume | No | ||
| direction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||