Overview
- Skill Key
- aaronllee/dex-quote
- Author
- Claude Assistant
- Source Repo
- openclaw/skills
- Version
- 1.0.0
- Source Path
- skills/aaronllee/dex-quote
- Latest Commit SHA
- f3b04bc504fbd9e9019fe39b85aa1d9b144d030b
Fetch optimal swap quotes from OKX DEX Aggregator API (v6). Use this skill when a user wants to: 1. Get the best price for swapping tokens on any supported EVM/Solana chain 2. Compare DEX routing paths and price impact for token swaps 3. Build applications or scripts that query real-time DEX aggregator pricing Core value: Generates correct, authenticated API calls with proper token decimals, amount formatting, HMAC-SHA256 signing, and comprehensive error handling.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 okx-dex-quote 技能。 若已安装,则直接安装 okx-dex-quote 技能。
# OKX DEX Aggregator Quote Skill ## Overview This skill generates production-ready code for fetching optimal swap quotes from the **OKX DEX Aggregator API v6**. The API finds the best price across multiple DEX protocols (Uniswap, SushiSwap, Curve, etc.) and returns detailed routing information including price impact, gas estimates, and token safety flags. **Key capabilities:** - Authenticated API requests with HMAC-SHA256 signing - Correct handling of token decimals and amount formatting - Support for `exactIn` (fixed input) and `exactOut` (fixed output) swap modes - Multi-chain support (Ethereum, BSC, Arbitrum, Base, Solana, and 20+ chains) - Price impact protection and honeypot detection - Fee/commission splitting configuration ## Prerequisites ### Required Credentials Users must have an OKX Web3 API key set. The skill needs three values: - `OKX_ACCESS_KEY` — API key - `OKX_SECRET_KEY` — Secret key for HMAC signing - `OKX_PASSPHRASE` — Account passphrase ### Environment - **Python**: `requests`, `hmac`, `hashlib`, `base64`, `datetime` (all stdlib except `requests`) - **Node.js**: `axios` or `node-fetch`, built-in `crypto` - No additional blockchain dependencies required (this is a read-only quote endpoint) ### API Endpoint ``` GET https://web3.okx.com/api/v6/dex/aggregator/quote ``` ## Workflow ### Step 1: Validate User Input Before constructing the API call, validate: 1. **Chain ID (`chainIndex`)** — Must be a supported chain. Common values: - `1` = Ethereum - `56` = BSC - `137` = Polygon - `42161` = Arbitrum - `8453` = Base - `130` = Unichain - `501` = Solana 2. **Token addresses** — Must be valid contract addresses or the native token placeholder: - Native tokens (ETH, BNB, etc.): `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee` - Contract tokens: Full 42-character hex address (EVM) or base58 (Solana) 3. **Amount** — MUST include token decimals. This is the #1 source of errors: - 1 ETH (18 decimals) → `"1000000000000000000...
caoyumin97
Structured problem analysis and communication using system mapping and hierarchical logic. Use when a request involves messy, multi-factor problems, root-cause analysis, intervention design, feedback loops or delays, or when a clear top-line recommendation with logically grouped support is required.
chaimengphp
Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting.
cerbug45
AI Wallet Payment System Skill Guide
bywallace
Read and manage Kubera.com portfolio data (net worth, assets, debts, allocation, holdings). Use when a user asks about their finances, net worth, portfolio, investments, holdings, asset allocation, or wants to update asset values in Kubera. Works with any AI agent or CLI that can run Python scripts.
c-goro
Expense tracking and accounting for AI agents. Log purchases, set budgets, generate spending reports, and manage multi-currency finances — all stored locally. Privacy.com card import, natural language queries, CSV/JSON export. Use when agents make purchases and need a financial audit trail.
c0rv0s
Short-form video for AI agents. Generate videos using the latest models, pay with USDC via x402.