Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Decentralized Exchanges (DEX)
On-chain order-book exchanges and swap aggregators; transactions are signed with the configured wallet or key.
Order-book Perpetuals
Perpetual exchanges with an on-chain order book: Hyperliquid, Lighter, edgeX, Aster, Aevo, Pendle, WOOFi Pro.
Swaps and Aggregators
AMM pools and swap aggregators, mapping on-chain swaps onto the spot trading functions: Uniswap / PancakeSwap, Aerodrome / Velodrome, KyberSwap, 1inch, Jupiter, OKX DEX.
IO command sub-pages shared by several exchanges: EVM DEX Common Commands (Uniswap / PancakeSwap, Aerodrome / Velodrome, KyberSwap, 1inch).
See also: DEX Strategy Examples.
In this sectionRead the whole section
| Name | Description |
| Hyperliquid | Hyperliquid (Spot): The spot market of the Hyperliquid on-chain order book. |
| Lighter | A perpetual-futures DEX on a zk rollup, quoted and settled in USDC. |
| edgeX | A perpetual-futures DEX (V2 API), with contracts quoted in USDC. |
| Aster | Aster (Spot): Aster spot (API address https://sapi.asterdex.com). |
| Aevo | USDC perpetual contracts and USDC options. |
| Pendle | Pendle (Spot): Trades Pendle PT (principal tokens) and YT (yield tokens). |
| WOOFi Pro | Perpetual contracts (the WOO ecosystem's perpetual DEX built on Orderly Network, a different product and account from the WOO X exchange). |
| Uniswap / PancakeSwap | The Uniswap and PancakeSwap exchange objects each connect to that exchange's pools on one chain and map on-chain swaps onto the spot trading functions. |
| Aerodrome / Velodrome (3) | The Aerodrome and Velodrome exchange objects use the same contracts, each connecting to that exchange's pools on one chain and mapping on-chain swaps onto the s… |
| KyberSwap | Connects to the KyberSwap aggregator: quotes and transaction data come from the KyberSwap Aggregator API (which splits and routes orders across many DEXs and ma… |
| 1inch | A OneInch exchange object connects to the 1inch aggregator: quotes and transaction data come from the 1inch Swap API v6.0 (which splits and routes orders across… |
| EVM DEX Common Commands (27) | The Uniswap / PancakeSwap, Aerodrome / Velodrome, KyberSwap and 1inch exchange objects share one implementation (swaps, concentrated liquidity and bridging on E… |
| Jupiter (24) | Connects to the Jupiter aggregator on the Solana chain and maps swaps onto the spot trading functions. |
| OKX DEX | Swaps tokens on-chain through the OKX DEX aggregator API, with wallets derived from the configured mnemonic (EVM chains, Tron, Solana, TON, Aptos, SUI, Starknet… |
| DEX Strategy Examples (6) | Complete, ready-to-run DEX strategies: automatic rebalancing of range liquidity, gauge staking and compounding on Aerodrome and Velodrome, DEX-CEX arbitrage, Ju… |