Swap your assets easily and permissionlessly across any exchange
Axel’s swap suite allows developers to seamlessly integrate token swapping into any application in just one line of code.

Programmatically and securely swap your tokens
Fetch quotes, exchange rates, and other market data
Fetch quotes, exchange rates, and other market data
Axel’s Swap API gets you the data you need to make optimized trades and enhance your user experience
Choose your DEX or auto-route
Choose your DEX or auto-route
Provide the DEX you’d like to swap on, or leverage our auto-routing to split your trade across DEXs to optimize your swap.
Let's swap our tokens on Uniswap
Let's swap our tokens on Uniswap
Let's swap our tokens on Uniswap
First, we need to load an Axel API key
Next, we connect a user's wallet. Let's assume MetaMask.
Axel automatically sends the transaction payload to Metamask to sign.
Celebrate now that the transaction has been completed.
1
import * as axel_sdk from "@axelapi/sdk";
2
const axel = new axel_sdk.Client("axlu-1-your-api-key");
3
await axel.connect_wallet();
4
await axel.swap({
5
protocol: "uniswap",
6
chain: "ethereum",
7
sell_token: "ETH",
8
buy_token: "USDC",
9
sell_amount: 0.01,
10
max_slippage_percent: 5,
11
});
12
13
console.log("Woohoo! Swapped 0.01 ETH for USDC on Uniswap!");
Import
Connect
Send
Celebrate
1
import * as axel_sdk from "@axelapi/sdk";
2
const axel = new axel_sdk.Client("axlu-1-your-api-key");
3
await axel.connect_wallet();
4
await axel.swap({
5
protocol: "uniswap",
6
chain: "ethereum",
7
sell_token: "ETH",
8
buy_token: "USDC",
9
sell_amount: 10,
10
max_slippage_percent: 5,
11
});
12
13
console.log("Swapped 0.01 ETH for USDC on Uniswap!");
First, we need to load an Axel API key
Next, we connect a user's wallet. Let's assume MetaMask.
Axel automatically sends the transaction payload to Metamask to sign.
Celebrate
Celebrate now that the transaction has been completed.
1
import * as axel_sdk from "@axelapi/sdk";
2
const axel = new axel_sdk.Client("axlu-1-your-api-key");
3
await axel.connect_wallet();
4
await axel.swap({
5
protocol: "uniswap",
6
chain: "ethereum",
7
sell_token: "ETH",
8
buy_token: "USDC",
9
amount: 10,
10
max_slippage_percent: 5,
11
});
12
13
console.log("Swapped 0.01 ETH for USDC on Uniswap!");
Integrate with the best staking protocols
Token pairing, liquidity pools, and slippage are incredibly tedious to manage — quote and execute swaps easily across decentralized exchanges.
Integrate with the best staking protocols
Token pairing, liquidity pools, and slippage are incredibly tedious to manage — quote and execute swaps easily across decentralized exchanges.
Integrate with the best swapping protocols
Token pairing, liquidity pools, and slippage are incredibly tedious to manage — quote and execute swaps easily across decentralized exchanges.

Support that doesn't sleep
You can leverage our libraries, see code examples, and ask questions to our devs.
Support that doesn't sleep
You can leverage our libraries, see code examples, and ask questions to our devs.