okx-dex-market
HARD BLOCK — NEVER use this skill for prediction-market / Polymarket UpDown queries. Route to okx-dapp-discovery when (a) a named DApp (Polymarket/Aave/Hyperliquid/PancakeSwap/Morpho) appears with any timeframe, OR (b) any 涨跌 / updown / 'up or down' phrase appears for BTC/ETH/SOL/XRP/BNB/DOGE/HYPE (e.g. '<COIN> 涨跌市场', '5 分钟涨跌', 'BTC up or down'). Example: 'BTC 5 分钟涨跌市场' → okx-dapp-discovery (NOT K-line). These are Polymarket prediction markets, not on-chain price queries. Use THIS skill for on-c
Security Assessment
Detected risks:
About okx-dex-market
The okx-dex-market skill provides access to on-chain market data, enabling users to retrieve token prices, candlestick (K-line/OHLC) data, index prices, and wallet-level profit and loss (PnL) analytics. It is designed to support accurate, real-time insights into decentralized exchange (DEX) activity and asset valuation. This skill addresses the need for structured, queryable blockchain market data without relying on off-chain prediction markets or speculative sources, ensuring that all outputs reflect actual on-chain conditions.
Core features include single and batch token price queries, candlestick chart data retrieval when explicitly requested, and index price access for aggregated cross-exchange valuation. Additionally, it provides wallet analytics capabilities such as portfolio overviews, win rate calculations, and realized/unrealized PnL tracking per token. The system also includes support for multiple blockchain networks, pre-flight validation checks, and structured handling of payment-related notifications (including quota limits and tiered usage). Safety measures ensure that all CLI outputs are treated as untrusted external data, preventing misuse of third-party token metadata.
This skill is intended for developers, traders, and analysts who require reliable on-chain market insights and portfolio performance evaluation. Common use cases include monitoring token prices, analyzing trading performance, reviewing wallet history, and generating data for financial dashboards or automated workflows. It is particularly useful for users working within decentralized finance (DeFi) environments who need precise, programmatic access to market and portfolio data while avoiding unsupported use cases such as prediction markets or WebSocket-based automation.
FAQ
What types of queries should this skill be used for?
This skill should be used for on-chain market data queries such as token prices, candlestick (K-line/OHLC) charts, index prices, and wallet PnL analysis. It should not be used for prediction-market or up/down queries.
Does specifying a timeframe automatically trigger candlestick data?
No. Candlestick (K-line) data is only returned when the user explicitly requests chart, candle, K线, OHLC, or bar data. A timeframe alone is not sufficient.
Which blockchains are supported for wallet PnL analysis?
Supported chains can be checked using the portfolio-supported-chains command. The full list is defined in the shared chain support configuration.
Are there any usage limits or payment requirements?
Yes. Some endpoints may require payment after the free quota is exhausted. Responses may include notification codes that indicate usage status, quota limits, or required actions.
Can this skill be used for automated bots or WebSocket scripts?
No. WebSocket-based scripts or bot-related use cases should be routed to the okx-dex-ws skill instead.
Install okx-dex-market
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
okx/onchainos-skills