okx_ws_subscribe_private
Subscribe to private WebSocket channels on OKX for real-time account, order, position, and trade data. Specify channel and optional instrument ID.
Instructions
[L:READ] CAT:[行情-WS] | → 请先调用 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": {
"channel": "<channel>"
},
"name": "okx_ws_subscribe_private"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instId | No | 产品ID。账户级频道可不传(如 account/positions/balances) | |
| channel | Yes | 私有频道名。共 22 个: account / positions / balance_and_position / position-risk-warning / account-greeks / orders / fills / algo-orders / advance-algo-orders / spot-grid-algo-orders / contract-grid-algo-orders / grid-positions / grid-sub-orders / recurring-buy-orders / lead-trading-notification / deposit-info / withdrawal-info / rfqs / quotes / structure-block-trades / sprd/orders / sprd/trades |