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) andprice(string for precision)
Prerequisites
Required Credentials
OKX_ACCESS_KEY— API keyOKX_SECRET_KEY— Secret key for HMAC signingOKX_PASSPHRASE— Account passphrase