okx-dex

Execute Solana token swaps via the OKX DEX aggregator.

3|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/readtheskill/readtheskill --skill okx-dex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-dex
Source: https://github.com/readtheskill/readtheskill/tree/main/public/skills/okx-dex
Command: npx skills add https://github.com/readtheskill/readtheskill --skill okx-dex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enable programmatic access to OKX DEX aggregator functionality so agents and services can obtain quotes and execute token swaps on Solana without manual routing or aggregator integration work.

Core Features & Use Cases

  • Chain Data Retrieval: Fetch on-chain data and pricing needed to construct swap quotes and evaluate routes.
  • Token Swaps via OKX DEX: Request quotes and submit swap transactions through the OKX DEX aggregator for programmatic trading and liquidity routing.
  • Multi-chain Support: Act as part of multi-chain agent workflows where Solana swaps need coordination with other chain actions.
  • Use Case: An automated trading agent queries the aggregator for the best route, constructs a transaction, and executes a Solana token swap as part of a cross-chain arbitrage or portfolio rebalancing flow.

Quick Start

Use the okx-dex skill to perform a token swap on Solana via the OKX DEX aggregator using your OKX_API_KEY and project credentials.

Frequently Asked Questions about okx-dex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I execute token swaps on Solana using the OKX DEX aggregator?

To execute token swaps on Solana, use the OKX DEX aggregator to request quotes and submit swap transactions programmatically. You need OKX API credentials including OKX_API_KEY, OKX_SECRET_KEY, OKX_API_PASSPHRASE, and OKX_PROJECT_ID for authentication.

Do I need OKX API credentials to fetch chain data and quotes for Solana swaps?

Yes, you need OKX API credentials including OKX_API_KEY, OKX_SECRET_KEY, OKX_API_PASSPHRASE, and OKX_PROJECT_ID to fetch chain data, request quotes, and submit swap transactions through the OKX DEX aggregator on Solana.

Can I use the OKX DEX aggregator for multi-chain agent workflows?

Yes, the OKX DEX aggregator supports multi-chain agent workflows where Solana token swaps need coordination with other chain actions. It enables cross-chain arbitrage and portfolio rebalancing flows within automated trading agents.

What's the best way to automate Solana token swaps for programmatic trading?

The best way to automate Solana token swaps is using the OKX DEX aggregator within Solana-based agents. An automated trading agent queries the aggregator for the best route, constructs a transaction, and executes the swap for liquidity routing.

Why does my OKX DEX swap on Solana require manual routing integration?

OKX DEX swaps on Solana should not require manual routing if you use the OKX DEX aggregator skill. It provides programmatic access to aggregator functionality, enabling agents to obtain quotes and execute swaps without manual routing or aggregator integration work.