close_position
Closes the server wallet's entire open position in a specified perpetual market by submitting an opposite-side IOC market order sized exactly to that position.
Instructions
Close the server wallet's entire position in one market with an opposite-side IOC market order sized exactly to the open position.
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": {
"symbol": "<symbol>"
},
"name": "close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Base symbol, e.g. BTC |