Swap API

Swap API#

OKX DEX is an aggregator of various decentralized exchanges (also known as DEXs, such as Uniswap, Curve, Balancer, etc.) on different blockchains, allowing multi-chain and cross-chain trading. Our goal is to provide users with the best possible prices through intelligent routing. OKX DEX will:

  • Automatically find liquidity pools with the maximum on-chain liquidity depth
  • Comprehensively calculate price, slippage, and transaction costs
  • Select the best quote for users based on a comprehensive comparison of quotes from various DEXs and PMMs through the smart order splitting algorithm
OKX DEX inquiry and transaction process