okx_get_max_size
Calculate the maximum order size for a given instrument and margin mode on OKX.
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>",
"tdMode": "<tdMode>"
},
"name": "okx_get_max_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ccy | No | 币种(仅MARGIN全仓时需要),如 USDT | |
| instId | Yes | 产品ID,如 BTC-USDT-SWAP。必填 | |
| tdMode | Yes | 保证金模式。cross=全仓, isolated=逐仓, cash=非保证金 |