ig_close_position
Close all or part of an OTC position to realize profit or loss. Manage trade exposure and finalize positions directly through the IG Trading API.
Instructions
Close all or part of an OTC position. This may realize profit or loss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| deal_id | Yes | ||
| request | Yes | ||
| live_confirmation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||