okx-dex-market

Fetch on-chain prices, candlesticks, index prices, and wallet PnL data.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/gist-kol-copy-trade-agent/agent-system --skill okx-dex-market-gist-kol-copy-trade-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-dex-market
Source: https://github.com/gist-kol-copy-trade-agent/agent-system/tree/main/okx-onchainos-skills/okx-dex-market
Command: npx skills add https://github.com/gist-kol-copy-trade-agent/agent-system --skill okx-dex-market-gist-kol-copy-trade-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides on-chain market data and wallet PnL insights for traders and developers who need quick access to prices, candles, index prices, and PnL across supported chains.

Core Features & Use Cases

  • Real-time Price & Batch Price Queries: fetch current prices for single or multiple tokens across supported chains.
  • K-line / OHLC Charts: obtain candlestick data for visual price trends.
  • Index Prices: retrieve aggregated index prices when requested.
  • Wallet PnL Analytics: compute realized/unrealized PnL, win rates, and token-level performance.
  • Wallet DEX History: review recent DEX trading history for a wallet.
  • Cross-Chain & Token Resolution: resolve token addresses and chain names for seamless queries.

Quick Start

Ask it to fetch the current price and PnL for a given token.

Frequently Asked Questions about okx-dex-market

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch on-chain wallet PnL analytics for a specific token?

To retrieve on-chain wallet PnL analytics, specify the wallet address and token to compute realized and unrealized PnL, win rates, and token-level performance across supported chains.

Can I get K-line and real-time price data for tokens across multiple chains?

Yes, you can retrieve K-line candlestick data and real-time token prices across supported chains by resolving token addresses and chain names to fetch current batch prices and visual price trends.

What on-chain market data can I query for DEX trading history?

You can query recent DEX trading history for a specified wallet, retrieving structured on-chain market data including executed swaps, token transfers, and associated transaction details across supported chains.

Does this tool support cross-chain token resolution and index price queries?

Yes, it supports cross-chain token resolution by mapping chain names and token addresses, and retrieves aggregated index prices alongside standard price and candlestick data for specified tokens.

What are the limitations when fetching on-chain market data and wallet PnL?

Data retrieval is limited to supported chains and valid token addresses; PnL computations depend on available on-chain transaction history, and safety notes via preflight guidance should be reviewed before executing CLI commands.