Read https://duang.ai/SKILL.md and use duang to run crypto.candles.
由 OKX(欧易) 提供支持的标准化数据接口(4)
可以让智能体这样提问
“What is Bitcoin trading at on OKX?”
## BTC-USDT on OKX (Spot) | Metric | Value | |---|---| | **Last price** | **$73,884.20** | | **24h open** | $74,307.70 | | **24h high / low** | $74,843.40 / $72,727.30 | | **Best bid / ask** | $73,887.40 / $73,887.50 | | **24h volume** | $740.91M | Bitcoin is slightly below its 24h open, trading near the middle of the day's range.
ticker · 记录于 2026-11-11T10:23:54.824Z“Show me Bitcoin's daily candles on OKX for the last three days.”
Last three daily **BTC-USDT** candles on OKX: | Open | High | Low | Close | Volume (BTC) | |---|---|---|---|---| | $73,205.40 | $74,179.70 | $72,727.30 | $73,884.20 | 5,822.77 | | $75,522.90 | $75,540.10 | $72,858.50 | $73,205.40 | 7,705.04 | | $76,074.80 | $76,100.00 | $73,500.00 | $75,524.40 | 9,854.15 |
candles · 记录于 2026-11-11T10:23:55.780Z全部操作(381)
| 操作 | 标准化能力 | 价格 |
|---|---|---|
GET www.okx.com/api/v5/market/tickerThe last price of an instrument, with its best bid and ask and the last 24 hours. | crypto.price | 自备 Key |
GET www.okx.com/api/v5/market/booksThe order book of an instrument: what buyers and sellers offer, by price. | — | 自备 Key |
GET www.okx.com/api/v5/market/candlesThe candles of an instrument: open, high, low, close and volume for each bar. | crypto.candles | 自备 Key |
GET www.okx.com/api/v5/market/tradesThe latest trades of an instrument. | — | 自备 Key |
GET www.okx.com/api/v5/public/instrumentsWhat an instrument is, and the rules for trading it. | — | 自备 Key |
GET www.okx.com/api/v5/public/funding-rateThe funding rate of a perpetual swap: what longs pay shorts, or the reverse. | crypto.funding.rate | 自备 Key |
GET www.okx.com/api/v5/public/open-interestHow many contracts are open on a derivative. | crypto.open.interest | 自备 Key |
GET www.okx.com/api/v5/account/account-position-riskGet account and position risk | — | 自备 Key |
GET www.okx.com/api/v5/account/adjust-leverage-infoGet leverage estimated info | — | 自备 Key |
GET www.okx.com/api/v5/account/balanceGet balance | — | 自备 Key |
GET www.okx.com/api/v5/account/billsGet bills details (last 7 days) | — | 自备 Key |
GET www.okx.com/api/v5/account/bills-archiveGet bills details (last 3 months) | — | 自备 Key |
GET www.okx.com/api/v5/account/bills-history-archiveGet bills details (since 2021) | — | 自备 Key |
GET www.okx.com/api/v5/account/collateral-assetsGet collateral assets | — | 自备 Key |
GET www.okx.com/api/v5/account/configGet account configuration | — | 自备 Key |
GET www.okx.com/api/v5/account/greeksGet Greeks | — | 自备 Key |
GET www.okx.com/api/v5/account/instrumentsGet instruments | — | 自备 Key |
GET www.okx.com/api/v5/account/interest-accruedGet interest accrued data | — | 自备 Key |
GET www.okx.com/api/v5/account/interest-limitsGet borrow interest and limit | — | 自备 Key |
GET www.okx.com/api/v5/account/interest-rateGet interest rate | — | 自备 Key |
GET www.okx.com/api/v5/account/leverage-infoGet leverage | — | 自备 Key |
GET www.okx.com/api/v5/account/max-avail-sizeGet maximum available balance/equity | — | 自备 Key |
GET www.okx.com/api/v5/account/max-loanGet the maximum loan of instrument | — | 自备 Key |
GET www.okx.com/api/v5/account/max-sizeGet maximum order quantity | — | 自备 Key |
GET www.okx.com/api/v5/account/max-withdrawalGet maximum withdrawals | — | 自备 Key |
GET www.okx.com/api/v5/account/mmp-configGET MMP Config | — | 自备 Key |
GET www.okx.com/api/v5/account/move-positions-historyGet move positions history | — | 自备 Key |
GET www.okx.com/api/v5/account/position-tiersGet PM position limitation | — | 自备 Key |
GET www.okx.com/api/v5/account/positionsGet positions | — | 自备 Key |
GET www.okx.com/api/v5/account/positions-historyGet positions history | — | 自备 Key |
GET www.okx.com/api/v5/account/precheck-set-delta-neutralPrecheck set delta neutral | — | 自备 Key |
GET www.okx.com/api/v5/account/risk-stateGet account risk state | — | 自备 Key |
GET www.okx.com/api/v5/account/set-account-switch-precheckPrecheck account mode switch | — | 自备 Key |
GET www.okx.com/api/v5/account/spot-borrow-repay-historyGet borrow/repay history | — | 自备 Key |
GET www.okx.com/api/v5/account/subaccount/balancesGet sub-account trading balance | — | 自备 Key |
GET www.okx.com/api/v5/account/subaccount/max-withdrawalGet sub-account maximum withdrawals | — | 自备 Key |
GET www.okx.com/api/v5/account/subtypesGet bill types | — | 自备 Key |
GET www.okx.com/api/v5/account/trade-feeGet fee rates | — | 自备 Key |
POST www.okx.com/api/v5/account/account-level-switch-presetPreset account mode switch | — | 自备 Key |
POST www.okx.com/api/v5/account/activate-featureActivate feature | — | 自备 Key |
POST www.okx.com/api/v5/account/activate-optionActivate option | — | 自备 Key |
POST www.okx.com/api/v5/account/bills-history-archiveApply bills details (since 2021) | — | 自备 Key |
POST www.okx.com/api/v5/account/demo-adjust-balanceAdjust demo account balance | — | 自备 Key |
POST www.okx.com/api/v5/account/mmp-configSet MMP | — | 自备 Key |
POST www.okx.com/api/v5/account/mmp-resetReset MMP Status | — | 自备 Key |
POST www.okx.com/api/v5/account/position-builderPosition builder (new) | — | 自备 Key |
POST www.okx.com/api/v5/account/position-builder-graphPosition builder trend graph | — | 自备 Key |
POST www.okx.com/api/v5/account/position/margin-balanceIncrease/decrease margin | — | 自备 Key |
POST www.okx.com/api/v5/account/set-account-levelSet account mode | — | 自备 Key |
POST www.okx.com/api/v5/account/set-auto-earnSet auto earn | — | 自备 Key |
POST www.okx.com/api/v5/account/set-auto-loanSet auto loan | — | 自备 Key |
POST www.okx.com/api/v5/account/set-auto-repaySet auto repay | — | 自备 Key |
POST www.okx.com/api/v5/account/set-collateral-assetsSet collateral assets | — | 自备 Key |
POST www.okx.com/api/v5/account/set-fee-typeSet fee type | — | 自备 Key |
POST www.okx.com/api/v5/account/set-greeksSet greeks (PA/BS) | — | 自备 Key |
POST www.okx.com/api/v5/account/set-isolated-modeIsolated margin trading settings | — | 自备 Key |
POST www.okx.com/api/v5/account/set-leverageSet leverage | — | 自备 Key |
POST www.okx.com/api/v5/account/set-position-modeSet position mode | — | 自备 Key |
POST www.okx.com/api/v5/account/set-riskOffset-amtSet risk offset amount | — | 自备 Key |
POST www.okx.com/api/v5/account/set-settle-currencySet settle currency | — | 自备 Key |
常见问题
如何在 Claude Code 或 Cursor 中接入 OKX(欧易)?
通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 OKX(欧易) 全部 381 个操作,无需本地维护 MCP 插件或明文密钥。
调用 OKX(欧易) 的数据接口如何计费?
在团队加密金库中绑定自有 OKX(欧易) 密钥即可免费调用。
我的 OKX(欧易) 密钥会暴露给大模型吗?
不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。






