okx avatar

Okx Dex Market

Pulls real-time token prices, OHLC candlestick data, and wallet PnL analytics from OKX's on-chain APIs. Handles the usual pain points like chain name resolution, token address lookup, and proper decimal formatting. The portfolio commands are solid for tracking DEX trade history and realized/unrealized gains across supported chains. Watch out for geo-restrictions (UK users get blocked from DEX endpoints) and some quirks like Solana requiring wrapped SOL addresses for price queries. Good for building trading dashboards or wallet analytics without wrestling with multiple DEX APIs yourself.

skills.sh installs
21.4K
GitHub stars
347
last updated
Aug 21, 2026

Install

$ npx -y skills add okx/onchainos-skills --skill okx-dex-market --agent claude-code

Installs into .claude/skills of the current project.

Files

Onchain OS DEX Data

Module Description

Query read-only DEX token, market, signal, social, trenches, and WebSocket data. Route writes and protocol-specific actions to the owning skill before executing a DEX command.

Preflight

Preflight checks: At the start of each thread, complete the checks in ../okx-agentic-wallet/_shared/preflight.md. If missing, read _shared/preflight.md.

Intent Routing

  • Named-protocol gate: if a supported DApp is the subject of an operation or protocol-specific analytics request—including APY, TVL, volume, positions, history, or a timeframe—stop and invoke okx-dapp-discovery. Polymarket and supported-asset up/down phrases for BTC/ETH/SOL/XRP/BNB/DOGE/HYPE also route there. Example: "BTC 5-minute up/down market" routes to okx-dapp-discovery, not kline or price.
  • Trenches write gate: buy/sell/snipe/ape verbs, including direct translations and Chinese slang, aimed at a pump.fun-style token are write operations and route to okx-dapp-discovery. Analytical bundle/sniper detection requests remain in Trenches; apply the detailed rule in trenches.md.

Sponsors

Details

Repository
github.com/okx/onchainos-skills
Categories
Backend & APIs, Automation & Workflows, Marketing & SEO, Sales & Marketing, CLI & Terminal, Finance & Trading, Web3 & Blockchain

More from okx/onchainos-skills

All 32
1jeffallan avatargolang-projeffallan/claude-skillsImplements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with p19.5Kskills.sh installs
2insforge avatarinsforgeinsforge/agent-skillsClient-side SDK for database queries, authentication, file uploads, AI features, real-time messaging, and edge function invocation.19.4Kskills.sh installs
3shopify avatarshopify-adminshopify/shopify-ai-toolkitWrite or explain **Admin GraphQL** queries and mutations for apps and integrations that extend the Shopify admin. Use when the user wants to **understand, desig17.8Kskills.sh installs
4clerk avatarclerk-tanstack-patternsclerk/skillsTanStack React Start auth patterns with @clerk/tanstack-react-start - createServerFn, beforeLoad guards, loaders, Vinxi server. Triggers on: TanStack auth, crea16.1Kskills.sh installs
5jeffallan avatarphp-projeffallan/claude-skillsUse when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Sw16.1Kskills.sh installs
6clerk avatarclerk-react-router-patternsclerk/skillsReact Router v7/v8 patterns with Clerk — rootAuthLoader, getAuth in loaders, clerkMiddleware, protected routes, SSR user data, org switching. Triggers on: react16.1Kskills.sh installs