All skills
okx avatar

/okx-dex-market

@7ee532c
by OKX.comokx/onchainos-skills338 stars
75

Query read-only DEX token, market, signal, social, trenches, and WebSocket data. Use for token search, rankings, liquidity, holders, risk metadata, clusters, and trades; prices, K-lines/OHLC, indexes, and wallet PnL; smart-money/KOL/whale signals; news, sentiment, and token vibe; meme-launch, developer, bundle/sniper, and co-investor research; or DEX WebSocket clients. Triggers include hot tokens, holder concentration, smart money, top-trader leaderboards, pump.fun research, new token launches, on-chain token scanning, bundled or sniper activity, and WebSocket.

Use this Skill: https://skilld.dev/gh/okx/onchainos-skills/okx-dex-market

This session only. Nothing lands on disk.

referencestrenches.md

≈977 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Capability: Trenches

7 commands for meme token discovery, developer analysis, bundle detection, and co-investor tracking.

Step 0 — Read vs Write Re-Route (run before every other step)

This capability is READ-ONLY research. Before running any onchainos memepump command, re-classify the user's intent as read or write:

  • WRITE intent → STOP and invoke okx-dapp-discovery (which installs pump-fun-plugin):

    • English action verbs: buy, sell, swap, snipe, ape, purchase, trade + a pump.fun token / address
    • Apply direct translations like their English equivalents; normalize non-literal Chinese write slang through the Trenches keyword glossary.
    • Examples that MUST re-route: "snipe this pump.fun token 0xabc", "buy this pump.fun token", "buy the hottest pump.fun token".
    • Snipe disambiguation: a bare "snipe + token/address" request is a write operation and must re-route. It remains here only when paired with an analytical noun such as "bundle/sniper detection" or "who sniped this token".
  • READ intent → stay in this capability (default for all memepump commands):

    • Developer reputation, launch history, or rug history
    • Bundle/sniper detection or analysis of who sniped a token
    • Bonding-curve progress, similar tokens by the same developer, or co-investor wallets
    • Token launch scans through memepump tokens

If you have already started running commands and only then realise the user's intent is a write op, halt mid-flow and invoke okx-dapp-discovery — do not run any swap/execute from inside this capability.

Commands

# Command Use When
1 onchainos memepump chains Discover supported chains and protocols
2 onchainos memepump tokens --chain <chain> [--stage <stage>] Browse/filter meme tokens by stage (default: NEW)
3 onchainos memepump token-details --address <address> Deep-dive into a specific meme token
4 onchainos memepump token-dev-info --address <address> Developer reputation and holding info
5 onchainos memepump similar-tokens --address <address> Find similar tokens by same creator
6 onchainos memepump token-bundle-info --address <address> Bundle/sniper analysis
7 onchainos memepump aped-wallet --address <address> Aped/co-investor wallet list

Step 1: Collect Parameters

  • Missing chain → default to Solana (--chain solana); verify support with onchainos memepump chains first
  • Missing --stage for memepump-tokens → default to NEW; only ask if the user's intent clearly points to a different stage
  • Stage coverage: NEW and MIGRATING include tokens created within the last 24 h; MIGRATED includes tokens whose migration completed within the last 3 days
  • User mentions a protocol name → first call onchainos memepump chains to get the protocol ID, then pass --protocol-id-list <id> to memepump-tokens. Do NOT use the Token capability to search for protocol names as tokens.

Step 2: Call and Display

  • Translate field names as specified below — never dump raw JSON keys
  • For memepump-token-dev-info, present as a developer reputation report
  • For memepump-token-details, present as a token safety summary highlighting red/green flags
  • When listing tokens from memepump-tokens, never merge or deduplicate entries that share the same symbol. Different tokens can have identical symbols but different contract addresses — each is a distinct token and must be shown separately. Always include the contract address to distinguish them.
  • Translate field names: top10HoldingsPercent → "top-10 holder concentration", rugPullCount → "rug pull count", bondingPercent → "bonding curve progress"

Data Freshness

Render requestTime (Unix ms) as-is — the upstream snapshot time. Do NOT chain off a previous response's requestTime.

Source: SKILL.md on GitHub

2 warnings6d5 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The skill is designed for querying DEX data and includes comprehensive instructions for the AI agent to handle external data securely. It retrieves information from news platforms, social media, and on-chain sources, which introduces a surface for indirect prompt injection. However, the skill explicitly commands the agent to treat this data as untrusted and not as instructions, and the underlying CLI tool includes measures to reduce the exposed content. The skill also installs a helper tool from the vendor's official package repository. No high-risk patterns were found.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: MEDIUM · 2 issues

  • Runlayer6mo

    1/2 files flagged

  • ZeroLeaks5mo

    1 finding · Score: 82/100

Signed by skilld at 7ee532c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated last week
Other metadata
metadata
{
  "author": "okx",
  "version": "4.6.3",
  "homepage": "https://web3.okx.com"
}
  • okx
  • dex
  • market-data
  • token-prices
  • kline
  • ohlc
  • pnl
  • wallet-analytics
  • portfolio

README badge

README badge for okx/onchainos-skills

Fetches on-chain token prices, K-line candlestick charts, index prices, and wallet PnL analysis (realized/unrealized gains, trade history, win rates) via the OKX DEX Market API. Supports batch price queries, per-token profit snapshots, and portfolio overviews across multiple chains.

Generated from the current SKILL.md.

Does this skill handle prediction markets like Polymarket?
No. This skill is explicitly blocked from prediction-market queries (涨跌 / updown markets). Route those to okx-dapp-discovery instead. This skill handles on-chain market data only: token prices, K-line charts, index prices, and wallet PnL.
What chains does portfolio PnL support?
Not all chains support PnL analysis. Call `onchainos market portfolio-supported-chains` first to verify the chain is supported before running wallet PnL commands.
When should I use K-line versus price?
Use K-line only when the user explicitly mentions chart, candle, K线, OHLC, or bar data. A timeframe alone (e.g. '5 minutes') does not trigger K-line — default to price instead.
Does this skill require payment after the free quota?
Some endpoints require payment via the OKX Agent Payments Protocol after free quota is exhausted. Responses may include notification codes (NEW_USER_INTRO, OLD_USER_GRACE, etc.) that indicate tier status and payment requirements.
How do I query real-time prices or candlestick data?
Use the `onchainos ws` CLI for real-time monitoring via WebSocket channels (price, dex-token-candle1m). For custom bots, read the ws-protocol specification.

Generated from the current SKILL.md. These answers refresh after source changes.