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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"positionId": "<positionId>",
"marketSlug": "<marketSlug>",
"direction": "<direction>",
"shares": "<shares>"
},
"name": "close_position"
}
}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. |