01Quick start
Four calls cover an exchange: list the coins, get the amount, create the order, then poll its status until it is final.
- 01Get coins and networks
- 02Estimate the amount
- 03Create the order
- 04Track the status
02Authentication
Send your partner API key in a header with every request. The key is on your dashboard. Requests without a valid key are rejected.
Base URL: https://api.kvant.finance
03Endpoints
Coins available for exchange. Each coin comes with all its networks. Use the ticker together with one of its networks everywhere.
The amount the user gets for a pair, plus the minimum and maximum.
Creates an order and returns the deposit address to show to the user.
The current status of an order with both transaction hashes when they exist.
04Order statuses
Poll the order until it reaches a final status. Final statuses do not change.
| Status | Meaning | Final |
|---|---|---|
| awaiting | Waiting for the deposit | No |
| confirming | Deposit seen, collecting confirmations | No |
| exchanging | The exchange is running | No |
| sending | Payout is on its way to the user | No |
| finished | Payout sent, commission credited | Yes |
| refunded | Deposit returned to the refund address | Yes |
| failed | The exchange could not be completed | Yes |
| stopped | On hold until support decides | No |
| support | The user must contact support | No |
05Errors and limits
| Code | When |
|---|---|
| 401 invalid_api_key | The API key is missing or wrong |
| 400 network_required | fromNetwork or toNetwork is missing |
| 422 network_unavailable | Deposits or payouts on that network are off now |
| 422 pair_unavailable | The pair is not available |
| 422 amount_out_of_range | The amount is below the minimum or above the maximum |
| 400 memo_required | memo or refundMemo is missing on a network that needs it. Show the user the depositMemo too: a deposit without it is lost |
| 422 invalid_address | The address does not match the network |
| 429 rate_limited | Too many requests: 120 requests and 20 new orders per minute for one key |
06Commission and payouts
Commission of your partner percent is accrued once a day for the orders that finished that day. Days without exchanges have no accrual. Request a payout from the dashboard once the balance passes 50 USDT. Each payout status change is sent to your email.