Close Position
close_positionClose an open position by selling shares back to the market to exit a copy trade.
Instructions
Close an open position by selling shares back to the market.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shares | Yes | Number of shares to sell. | |
| outcome | No | The outcome token to sell (optional). | |
| direction | Yes | The position direction (e.g. 'Yes' or 'No'). | |
| marketSlug | Yes | The market slug identifier. | |
| positionId | Yes | The ID of the copy trade/position to close. |