hl_close_position
Close the entire position for a specific asset using a market order. Specify the asset symbol to exit the trade.
Instructions
Close the entire position for a specific asset using a market order. Requires HL_PRIVATE_KEY in env.
Args: coin: Asset symbol e.g. BTC, ETH
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": {
"coin": "<coin>"
},
"name": "hl_close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |