okx_set_position_mode
Set your OKX account position mode to long_short_mode or net_mode to control how positions are opened and managed.
Instructions
[L:ADMIN] CAT:[账户] | → 请先调用 agent_catalog
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": {
"posMode": "<posMode>"
},
"name": "okx_set_position_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posMode | Yes | 持仓模式。long_short_mode=双向持仓, net_mode=单向持仓 |