nobitex_close_position
Closes or settles a Nobitex margin position using market, limit, stop-market, or stop-limit execution, with optional amount, price, and stop trigger settings.
Instructions
Close (settle) a margin position.
Args: position_id: Position id. execution: Close execution type; "market" closes at best price. amount: Amount to settle as a decimal string. price: Limit price for limit/stop_limit closes. stop_price: Trigger price for stop closes. stop_limit_price: Paired stop-limit price. client_order_id: Optional client order id.
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": {
"position_id": "<position_id>"
},
"name": "nobitex_close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | ||
| amount | No | ||
| execution | No | market | |
| stop_price | No | ||
| position_id | Yes | ||
| client_order_id | No | ||
| stop_limit_price | No |