skills/skills.volces.com/okx-dex-market-price

okx-dex-market-price

Installation
SKILL.md

OKX DEX Market Price API Skill

Overview

This skill generates production-ready code for fetching token prices from the OKX DEX Market Price API v6. The API returns the latest price for one or more tokens on a given chain. It is a batch endpoint: you send a list of (chainIndex, tokenContractAddress) and receive a list of price results.

Key capabilities:

  • Authenticated POST API requests with HMAC-SHA256 signing (prehash includes request body)
  • Batch support: 1–100 tokens per request
  • Multi-chain support (Ethereum, BSC, Polygon, Arbitrum, Base, Solana, etc.)
  • Response includes time (price timestamp in ms) and price (string for precision)

Prerequisites

Required Credentials

  • OKX_ACCESS_KEY — API key
  • OKX_SECRET_KEY — Secret key for HMAC signing
  • OKX_PASSPHRASE — Account passphrase
Installs
3
First Seen
Mar 28, 2026
okx-dex-market-price from skills.volces.com