okx_get_margin_balance
Retrieve the margin balance for a specified instrument and margin mode (cross or isolated) using OKX account data.
Instructions
[L:READ] 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": {
"instId": "<instId>",
"mgnMode": "<mgnMode>"
},
"name": "okx_get_margin_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instId | Yes | 产品ID,如 BTC-USDT。必填 | |
| mgnMode | Yes | 保证金模式。cross=全仓, isolated=逐仓 |