okx-market-api
OKX Web3 Wallet Market API 技能 - 用于查询加密货币代币价格、市场数据和交易信息。 当用户需要以下功能时使用此技能: - 查询代币实时价格、K线数据、交易记录 - 获取综合币价(聚合多数据源的指数价格) - 搜索代币、获取代币详情、查看代币排行榜 - 获取持仓大户信息 触发词包括:代币价格、币价、K线、candlestick、行情、market data、OKX API、DEX 数据、 链上数据、token price、index price、token search、holder 等。 支持 Solana、EVM、Sui 等多链生态,覆盖 100+ DEX 和 CEX 数据源。
Why use this skill?
Integrate real-time DEX market data, K-line charts, and token price tracking into your OpenClaw agents with the OKX Web3 Market API skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/leoricfanfan/okdex-marketWhat This Skill Does
The okx-market-api is a specialized agent skill designed to bridge OpenClaw AI agents with the robust OKX Web3 Wallet Market data ecosystem. It provides real-time access to decentralized exchange (DEX) liquidity, token pricing, historical K-line analytics, and on-chain trading activity. By utilizing this skill, your agent can perform sophisticated market analysis across major blockchain networks, including Ethereum, Solana, Arbitrum, and BSC, effectively functioning as a terminal for on-chain market intelligence.
Installation
To integrate this market intelligence tool into your agent environment, run the following command in your terminal:
clawhub install openclaw/skills/skills/leoricfanfan/okdex-market
Ensure you have your OKX API credentials prepared, as the skill requires valid authentication headers (API Key, Secret, and Passphrase) to interact with the endpoints securely.
Use Cases
This skill is perfect for users requiring data-driven decision support in the DeFi space. Use cases include:
- Algorithmic Trading Research: Analyze historical price trends via high-granularity K-line data to backtest strategies.
- Portfolio Monitoring: Retrieve real-time aggregate price data to track asset values across multiple chains.
- Market Surveillance: Monitor large holder activity and recent trade flow to identify potential liquidity shifts or whale movements.
- DEX Aggregation: Compare price discrepancies across different DEX protocols supported by OKX’s underlying infrastructure.
Example Prompts
- "What is the current 1-hour K-line chart for the token at address 0x382bb... on the OKX Chain?"
- "Show me the last 50 buy/sell trades for this Solana token, including the DEX names used."
- "Is there any significant trading volume surge or whale activity for this contract address in the last 24 hours?"
Tips & Limitations
To ensure optimal performance, always verify your chainIndex values, as Ethereum (1) and Solana (501) use different protocols. Note that the API is limited to a maximum of 299 records per request for K-line data. Always treat on-chain data as "at the time of query"; market conditions in DeFi move rapidly, and execution latency should be considered for time-sensitive operations. Keep your OK-ACCESS-SIGN logic secure by using environment variables to prevent exposing your API secrets.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-leoricfanfan-okdex-market": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api