Close position (sells holdings)
close_position⚠️ Irreversible: this executes a real on-chain sell of the position's remaining holdings. Close a specific position — cancels pending orders and creates a sell order for remaining holdings
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": {
"thesisId": "<thesisId>"
},
"name": "close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me). | |
| thesisId | Yes | The position thesis ID to close |