close_position
Close an open cTrader position for the authenticated account, with optional partial close by specifying a volume.
Instructions
Close a cTrader position.
This override ensures:
Account ID is always bound to the authenticated session
Position ID is validated as a non-empty string
Volume (if provided) is validated to be positive
Partial closes are supported via volume parameter
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| volume | No | Optional volume for partial close | |
| account_id | Yes | The cTrader account ID (from session) | |
| position_id | Yes | The position ID to close |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||