Trading API

Add crypto swaps to your app with the InstaSwap API

Integrate InstaSwap's API to enable seamless crypto swaps in your app. Support native tokens like Bitcoin, Ethereum, and Solana, plus 10k+ assets across 63 blockchains, all on a secure, non-custodial platform with real-time market data and optimized routing. Boost engagement and generate crypto rewards on every trade.

POST /quote-lite
# get the best route for a swap
curl https://walletlessapi.instaswap.com/quote-lite \
  -H "Content-Type: application/json" \
  -d '{
    "affiliateId": "YOUR_AFFILIATE_ID",
    "from": "btc.btc",
    "to": "eth.eth",
    "amount": "1"
  }'

# 200 OK
{
  "estimatedOut": 29.113,
  "estimatedOutUsd": 87339.96,
  "etaSeconds": 412,
  "feeBreakdown": [ … ]
}
GET /tokens-litePOST /quote-litePOST /swap-liteGET /swap/{id}/status-lite

Routing liquidity from

THORChainNEAR IntentsChainflipMaya ProtocolPegasusOpenOceanUniswap1inchJupiterTrader JoeWOOFiCamelotPangolinSushiSwapSymbiosisRouterRubic
What's the InstaSwap API

One endpoint for secure, seamless swaps

A powerful tool for apps, wallets, or websites to integrate secure cross-chain crypto swaps.

Swap native assets

Let users swap native assets, like converting Bitcoin to Solana, directly within your platform with fast, secure settlement.

Multi-blockchain DEX swaps

Support decentralized exchanges across networks like Ethereum and Avalanche for a smooth, multi-chain trading experience.

Earn crypto rewards

Generate value by earning crypto rewards for every swap made through your app, turning each transaction into revenue.

dashboard.instaswap.com
TransactionsLive feed
ETH → SOL
Completed · 2 min
+$0.92
BTC → ETH
Completed · 4 min
+$2.41
SOL → USDC
Confirming · est. 40s
+$0.38
The API surface

Four APIs, one partner account

walletlessapi.instaswap.com

Walletless Swaps API

Quote, create and track native cross-chain swaps with a deposit-address flow. No wallet connection needed.

  • GET /tokens-lite · token catalog
  • POST /quote-lite · best-route quote
  • POST /swap-lite · create swap + deposit address
  • GET /swap/{id}/status-lite · lifecycle & points
  • Webhooks with X-Instaswap-Signature
spotapi.instaswap.com

Spot API

On-chain spot trading data and order management for your users' wallets.

  • GET /markets · pairs, price & 24h stats
  • GET /orderbook/{symbol} · live depth
  • POST /orders · limit & market orders
  • GET /balances · portfolio reads
perpsapi.instaswap.com

Perpetuals API

Perpetual futures with leverage, funding rates and position management.

  • GET /funding-rates · current & historical
  • POST /orders · long/short with leverage
  • GET /positions · open positions & PnL
  • POST /affiliate/verify · partner attribution
ppapi.instaswap.com

Partner CMS API

Server-to-server reporting for your integration, authenticated with your partner API key.

  • X-Partner-Api-Key header auth
  • GET /swapStates · every swap you generated
  • POST /formData · sub-affiliate fee totals
  • API-key lifecycle: generate / revoke
Sub-affiliates · industry first

One account, many integrations

No other exchange offers this. Create sub-affiliates for your own downstream partners, set the exact fee you agreed with each of them plus your own margin, and let the platform settle the split automatically on every swap, with separate attribution, reporting and payouts per source.

You set both fees

Per sub-affiliate you configure your partner fee AND their agreed fee (each 0-500 bps). Whatever deal you make with a sub-partner, the platform enforces it per swap.

Per-source reporting

Each swap is tagged with its sub-affiliate. Pull totals and per-source breakdowns from the Partner CMS API, or view them in the Partners Dashboard.

Scoped access

Sub-affiliate swap statuses are access-controlled: only requests carrying the matching X-Sub-Affiliate-Id can read them.

Managed from the dashboard

Create, label, edit and deactivate sub-affiliates in the Partners Dashboard. Ask us to enable sub-affiliate fees on your account to get started.

sub-affiliate attribution
# tag any quote or swap with a sub-source
curl https://walletlessapi.instaswap.com/quote-lite \
  -H "Content-Type: application/json" \
  -H "X-Sub-Affiliate-Id: a1b2c3d4e5f6…" \
  -d '{
    "affiliateId": "YOUR_AFFILIATE_ID",
    "from": "btc.btc", "to": "eth.eth",
    "amount": "1"
  }'

# feeBreakdown now includes the split
{
  "feeBreakdown": [
    { "type": "instaswap",    "amountUsd": 1.25 },
    { "type": "affiliate",    "amountUsd": 0.85 },
    { "type": "subAffiliate", "amountUsd": 0.40 }
  ]
}
Why choose us

Why choose InstaSwap's API?

Users keep their crypto safe

With non-custodial swaps, your users always control their funds, ensuring maximum security and peace of mind.

Works everywhere

Enable token swaps across 63 blockchains with access to 10k+ coins, providing broad market coverage and versatile options.

Easy setup for you

Clear, step-by-step guides and copy-paste code snippets make integration simple, even if you are not a seasoned developer.

Earn passive crypto

Tap into additional revenue by joining our affiliate program, earning USDC rewards for every swap made through your app.

Quickstart

Live in three steps

01

Sign up free

Create your account in moments. No credit card required.

02

Connect the API

Drop in your key and a few lines of code. We guide you the whole way.

03

Earn rewards

Get paid weekly in crypto for every swap your users make. Withdraw anytime.

Read the quickstart
quickstart.js · walletless flow
const API = "https://walletlessapi.instaswap.com";

// 1. quote → 2. create swap → 3. poll status
const swap = await fetch(API + "/swap-lite", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    affiliateId: "YOUR_AFFILIATE_ID",
    from: "btc.btc", to: "eth.eth",
    amount: "0.001",
    recipientAddress: "0xAbC…123",
    refundAddress: "bc1q…xyz"
  })
}).then(r => r.json());

// user sends funds to swap.depositInfo[0].depositAddress
// then poll: GET /swap/${swap.txid}/status-lite
// or receive webhooks (X-Instaswap-Signature verified)

Key features

Earn more

Get paid for every swap you facilitate, earning up to 50% of the fees and maximizing your revenue.

Safe & private

Secure, non-custodial swaps with no need for ID or KYC. Your users' privacy is fully protected.

Mobile-friendly

Optimized for all devices, ensuring a seamless trading experience on desktop, tablet, or smartphone.

Live tracking

Monitor performance in real time with a dashboard showing detailed earnings and swap metrics.

Who uses this?

Crypto wallets

Enable users to swap tokens directly without leaving your wallet app, turning it into an in-app trading tool.

NFT sites

Integrate ETH to SOL swaps so users can buy NFTs effortlessly, streamlining the purchase flow on your marketplace.

Bloggers & influencers

Add dynamic swap functionality to your site or blog and earn crypto rewards with every trade you drive.

API integration FAQs

Clear answers about building on the InstaSwap API.

Build with InstaSwap

Ship cross-chain swaps this week

Register for free to unlock the API. Create your account in moments, grab your key, and add swaps to your platform with copy-paste code.

Get your API key Read the docs