okdex-market_skill

This skill helps you fetch real-time token prices, candlesticks, trades, and aggregated index prices from the OKX Market API across multiple chains.
  • Python

2.5k

GitHub Stars

2

Bundled Files

6 months ago

Catalog Refreshed

8 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill okdex-market

  • _meta.json287 B
  • SKILL.md13.1 KB

Overview

This skill integrates with the OKX Web3 Wallet Market API to fetch on-chain and off-chain market data for crypto tokens. It returns real-time and historical prices, candlestick (K-line) data, trade feeds, token details, rankings, and top-holder information across multiple chains. The skill supports Solana, EVM, Sui and 100+ DEX/CEX data sources for aggregated index prices.

How this skill works

The skill calls OKX Web3 Wallet Market REST endpoints using authenticated headers and HMAC-SHA256 signatures to request market, index, token, and holder data. It can request candlesticks, recent trades, index prices (aggregated from multiple sources), token search and metadata, ranking lists, and top-holder snapshots. For high-frequency or real-time needs, the WebSocket channels provide live price, candlestick, trades and liquidity streams for whitelisted users.

When to use it

  • Retrieve real-time token price or aggregated index price across CEX/DEX/oracles
  • Fetch candlestick (K-line) data for charting and backtesting
  • Get recent on-chain trades and liquidity signals for a token
  • Search tokens across multiple chains and retrieve detailed metadata
  • Monitor top token holders and on-chain concentration risks

Best practices

  • Use authenticated requests with proper timestamp and HMAC-SHA256 signature to avoid signature errors
  • Query index/current-price in batches (max 100 tokens) to reduce latency and rate-limit hits
  • Specify chainIndex and lowercase EVM contract addresses where required to ensure correct results
  • Use 'limit' and time-window parameters for candlesticks to avoid huge payloads (max 1,440 records)
  • Handle error codes (0 success, 50001 param error, 50002 signature error, 50003 rate limit) and implement retry/backoff

Example use cases

  • Build a multi-chain price widget that shows aggregated index prices for portfolio tokens
  • Generate OHLC candlestick charts for trading strategies using historical and live K-line endpoints
  • Power a token search and discovery page with on-chain metadata, market cap, liquidity and holders
  • Alert system for large holder movements using token holder endpoints and recent trades feed
  • Compare DEX vs aggregated index price for arbitrage signal detection

FAQ

You must send OK-ACCESS-KEY, OK-ACCESS-SIGN (HMAC-SHA256), OK-ACCESS-PASSPHRASE and OK-ACCESS-TIMESTAMP in request headers.

How do I get aggregated index price for native chain tokens?

Send tokenContractAddress as an empty string "" with the appropriate chainIndex in the POST payload to current-price.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational