Real-time token prices, K-line charts, index prices, and wallet PnL analysis on-chain.
Works with
Covers 9 commands across three categories: market prices (single/batch/candlestick), index prices, and wallet portfolio analytics (PnL overview, DEX history, per-token realized/unrealized gains)
Supports multiple chains including Ethereum, Solana, XLayer, Base, BSC, and Arbitrum via human-readable chain names or numeric indices
Portfolio commands deliver wallet win rate, top-performing tokens, trad
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionokx-dex-marketExecute the skills CLI command in your project's root directory to begin installation:
Fetches okx-dex-market from okx/onchainos-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate okx-dex-market. Access via /okx-dex-market in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
188
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
188
stars
9 commands for on-chain prices, candlesticks, index prices, and wallet PnL analysis.
Read
../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read_shared/preflight.mdinstead.
Full chain list:
../okx-agentic-wallet/_shared/chain-support.md. If that file does not exist, read_shared/chain-support.mdinstead.
| Chinese | English / Platform Terms | Maps To |
|---|---|---|
| 行情 / 价格 / 多少钱 | market data, price, "how much is X" | price (default), kline — never index |
| 指数价格 / 综合价格 / 跨所价格 | index price, aggregate price, cross-exchange composite | index — only when user explicitly requests it |
| 盈亏 / 收益 / PnL | PnL, profit and loss, realized/unrealized | portfolio-overview, portfolio-recent-pnl, portfolio-token-pnl |
| 已实现盈亏 | realized PnL, realized profit | portfolio-token-pnl (realizedPnlUsd) |
| 未实现盈亏 | unrealized PnL, paper profit, holding gain | portfolio-token-pnl (unrealizedPnlUsd) |
| 胜率 | win rate, success rate | portfolio-overview (winRate) |
| 历史交易 / 交易记录 / DEX记录 | DEX transaction history, trade log, own wallet DEX history | portfolio-dex-history |
| 清仓 | sold all, liquidated, sell off | portfolio-recent-pnl (unrealizedPnlUsd = "SELL_ALL") |
| 画像 / 钱包画像 / 持仓分析 | wallet profile, portfolio analysis | portfolio-overview |
| 近期收益 | recent PnL, latest earnings by token | portfolio-recent-pnl |
| # | Command | Description |
|---|---|---|
| 1 | onchainos market price --address <address> |
Get single token price |
| 2 | onchainos market prices --tokens <tokens> |
Batch price query |
| 3 | onchainos market kline --address <address> |
Get K-line / candlestick data |
| # | Command | Description |
|---|---|---|
| 4 | onchainos market index --address <address> |
Get index price (aggregated from multiple sources) — use only when user explicitly requests aggregate/index price; use price for all other price queries |
| # | Command | Description |
|---|---|---|
| 5 | onchainos market portfolio-supported-chains |
Get chains supported by portfolio PnL endpoints |
| 6 | onchainos market portfolio-overview |
Get wallet PnL overview (realized/unrealized PnL, win rate, Top 3 tokens) |
| 7 | onchainos market portfolio-dex-history |
Get DEX transaction history for a wallet (paginated, up to 1000 records) |
| 8 | onchainos market portfolio-recent-pnl |
Get recent PnL list by token for a wallet (paginated, up to 1000 records) |
| 9 | onchainos market portfolio-token-pnl |
Get latest PnL snapshot for a specific token in a wallet |
onchainos market price (default for all price / 行情 queries)onchainos market klineonchainos market pricesIndex price → onchainos market index only when the user explicitly asks for "aggregate price", "index price", "综合价格", "指数价格", or a cross-exchange composite price. For all other price / 行情 / "how much is X" queries → use onchainos market price.
onchainos market portfolio-overviewonchainos market portfolio-dex-historyonchainos market portfolio-recent-pnlonchainos market portfolio-token-pnlonchainos market portfolio-supported-chains--chain xlayer, low gas, fast confirmation) as the default, then ask which chain the user prefers; for portfolio PnL queries, first call onchainos market portfolio-supported-chains to confirm the chain is supportedokx-dex-token onchainos token search first to resolvets → Time, o → Open, h → High, l → Low, c → Close, vol → Volume, volUsd → Volume (USD), confirm → Status (0=incomplete, 1=completed). Never show raw field names like o, h, l, c to users.After price, kline, or index results: suggest viewing the chart, checking token analytics, or buying — conversationally.
| Just called | Suggest |
|---|---|
market price |
1. View K-line chart → onchainos market kline 2. Check token analytics → onchainos token price-info 3. Buy/swap this token → onchainos swap execute |
market kline |
1. Check token analytics → onchainos token price-info 2. Check holder distribution → onchainos token holders 3. Buy/swap this token → onchainos swap execute |
market prices |
1. View K-line chart for a token → onchainos market kline 2. View single token price → onchainos market price |
market index |
1. Compare with on-chain DEX price → onchainos market price 2. View full price chart → onchainos market kline |
market portfolio-supported-chains |
1. Get PnL overview → onchainos market portfolio-overview |
market portfolio-overview |
1. Drill into trade history → onchainos market portfolio-dex-history 2. Check recent PnL by token → onchainos market portfolio-recent-pnl 3. Buy/sell a top-PnL token → onchainos swap execute |
market portfolio-dex-history |
1. Check PnL for a specific traded token → onchainos market portfolio-token-pnl 2. View token price chart → onchainos market kline |
market portfolio-recent-pnl |
1. Get detailed PnL for a specific token → onchainos market portfolio-token-pnl 2. View token analytics → onchainos token price-info |
market portfolio-token-pnl |
1. View full trade history for this token → onchainos market portfolio-dex-history 2. View token price chart → onchainos market kline |
Present conversationally, e.g.: "Would you like to see the K-line chart, or buy this token?" — never expose command paths to the user.
For detailed parameter tables, return field schemas, and usage examples for all 10 commands, consult:
references/cli-reference.md — Full CLI command reference with params, return fields, and examplesTo search for specific command details: grep -n "onchainos market <command>" references/cli-reference.md
For real-time price and candlestick data, use the onchainos ws CLI:
# Real-time token price
onchainos ws start --channel price --token-pair 1:0xdac17f958d2ee523a2206206994597c13d831ec7
# K-line 1-minute candles
onchainos ws start --channel dex-token-candle1m --token-pair 1:0xdac17f958d2ee523a2206206994597c13d831ec7
# Poll events
onchainos ws poll --id <ID>
For custom WebSocket scripts/bots, read references/ws-protocol.md for the complete protocol specification.
Some services are geo-restricted. When a command fails with error code 50125 or 80001, return a friendly message without exposing the raw error code:
| Service | Restricted Regions | Blocking Method |
|---|---|---|
| DEX | United Kingdom | API key auth |
| DeFi | Hong Kong | API key auth + backend |
| Wallet | None | None |
| Global | Sanctioned countries | Gateway (403) |
Error handling: When the CLI returns error 50125 or 80001, display:
{service_name} is not available in your region. Please switch to a supported region and try again.
Examples:
Do not expose raw error codes or internal error messages to the user.
onchainos token search to resolve11111111111111111111111111111111) does not work for market price or market kline. Use the wSOL SPL token address (So11111111111111111111111111111111111111112) instead. Note: for swap operations, the native address must be used — see okx-dex-swap.onchainos market portfolio-supported-chains firstportfolio-dex-history requires --begin and --end: both timestamps (Unix milliseconds) are mandatory; if the user says "last 30 days" compute them before callingportfolio-recent-pnl unrealizedPnlUsd returns SELL_ALL: this means the address has sold all its holdings of that tokenportfolio-token-pnl isPnlSupported = false: PnL calculation is not supported for this token/chain combination⚠️ Service is not available in your region. Please switch to a supported region and try again.1.5 ETH), never base units1.5 ETH ≈ $4,500)ethereum → 1, solana → 501)Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
okx-dex-market is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: okx-dex-market is the kind of skill you can hand to a new teammate without a long onboarding doc.
okx-dex-market has been reliable in day-to-day use. Documentation quality is above average for community skills.
We added okx-dex-market from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Keeps context tight: okx-dex-market is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added okx-dex-market from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
okx-dex-market is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in okx-dex-market — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
okx-dex-market is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
okx-dex-market has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 38