If your users need to swap coins, you don't have to become an exchange. A swap API lets you offer it in-product: you handle the interface, the provider handles liquidity, pricing and payouts. Here's the shape of an integration with 0trace.
What you'll need
- An API key — 0trace access is invite-only, so request it; there's no self-serve KYC gate.
- A server to sign requests, because secrets never touch the browser.
- A webhook endpoint to receive signed status updates.
The three-call flow
- Quote: ask for a price on a pair and amount. The rate is computed on our side against a live feed.
- Create: open an order with a signed request and your user's payout address. We re-quote on creation, so your price matches ours.
- Follow: show the deposit details, then track the order through signed webhooks until it's paid out.
Signing requests
Every request is signed with HMAC-SHA256 over the exact request body, with a nonce to block replays. Do the signing on your server — the secret must never reach client code. There's a dedicated guide on HMAC signing if you want the details.
Handling webhooks
You subscribe to the events you want — order.status_changed and partner.paid_out. Each delivery is signed, and the status is fixed when the event is queued, so you won't miss an intermediate step. Verify the signature, then update your order state.
No-KYC for your users
Your users swap without an account or ID. Payouts settle from our own liquidity, direct to the address they gave. You keep the relationship; we do the exchange.
How you get paid
Take a share of our fee by sending traffic with your referral link, or add your own markup on top of our rate through the API — or both. Integration is free; you earn on volume.