okx-dex-quote
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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aaronllee/dex-quoteWhat This Skill Does
The OKX DEX Aggregator Quote Skill enables OpenClaw to fetch real-time, optimal swap quotes from the OKX DEX Aggregator API (v6). Designed for DeFi developers and power users, this skill abstracts the complexities of HMAC-SHA256 request signing, chain-specific token decimal precision, and API authentication. By querying the OKX DEX aggregator, the skill provides competitive price discovery across major DEX protocols like Uniswap, Curve, and SushiSwap, ensuring users get the best execution paths and low slippage for their swaps on various chains including Ethereum, Solana, and Layer 2 solutions.
Installation
To install this skill, run the following command in your OpenClaw terminal:
clawhub install openclaw/skills/skills/aaronllee/dex-quote
Ensure you have configured your environment variables: OKX_ACCESS_KEY, OKX_SECRET_KEY, and OKX_PASSPHRASE. Without these keys, the API will reject your requests due to authentication failures.
Use Cases
- DeFi Portfolio Management: Retrieve precise swap prices before executing a transaction, allowing the agent to provide accurate cost estimates for portfolio rebalancing.
- Arbitrage Analysis: Compare price impacts and routing paths for a token across multiple supported chains to identify price discrepancies.
- Automated Trading Scripts: Build robust trading bots that require verified price data, using the skill to handle decimal conversion and secure signing for high-frequency quote requests.
- Token Swap Comparisons: Evaluate the best route for swapping native assets to LP tokens or specific altcoins across EVM networks and Solana.
Example Prompts
- "Check the current swap quote for 1000 USDT to ETH on the Arbitrum network; provide the path with the best price impact."
- "What is the estimated output for swapping 1 WBTC to USDC on Ethereum? Include gas estimates and the DEX route."
- "Fetch the optimal quote for trading 5 SOL for Jupiter (JUP) on Solana and explain the fee breakdown provided by the OKX API."
Tips & Limitations
- Decimal Precision: The most frequent error is incorrect amount formatting. Always convert human-readable amounts to raw values using the token's decimal count (e.g., multiply by 10^18 for standard EVM tokens).
- ExactIn vs ExactOut: Note that
exactOutis limited to specific networks (Ethereum, Base, BSC, Arbitrum) and Uniswap V2/V3 pools. - Security: This is a read-only quote skill. It does not perform actual swaps, keeping your funds safe from unintentional automated trades. Always verify contract addresses before requesting quotes for obscure tokens.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aaronllee-dex-quote": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: network-access, external-api
Related Skills
iseclaw-intel
Indonesian Web3 intelligence via Iseclaw ACP agent. Real-time market data, token signals, TGE research, and GameFi analysis from Southeast Asia's first transparent AI agent.
Zerion Api Skill
Skill by abishekdharshan
web3-weekly-report
自动抓取数据并生成 Web3 行业资本运作周报,涵盖融资事件、监管动态、上市公司 DAT 动态、并购交易与 RWA 项目追踪。当用户提到"写周报"、"生成周报"、"整理本周融资"、"Web3 周报"、"资本运作周报"、"采编周报",或请求整理加密行业本周动态时,立即激活此 skill。即使用户只说"帮我写本周的",只要上下文涉及 Web3、加密、融资、RWA、DAT,也应激活。
Zerion Api
Skill by abishekdharshan
openmm
Open-source market making for AI agents. Multi-exchange trading, grid strategies, and real-time market data. CLI + MCP + Skills.