API reference
Quote
Returns a live quote for a swap. The estimated amount received already includes all fees.
GET
/api/open/v1/rateParameters
Query string:
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Currency to pay, e.g. USDT |
fromNetwork | string | Yes | Network to pay on, e.g. TRC20 |
to | string | Yes | Currency to receive, e.g. BTC |
toNetwork | string | Yes | Network to receive on, e.g. Bitcoin |
amount | string | Yes | Amount to pay |
rateType | string | No | FLOAT (floating, default) or FIXED (fixed) |
HTTP
GET /api/open/v1/rate?from=USDT&fromNetwork=TRC20&to=BTC&toNetwork=Bitcoin&amount=1000&rateType=FLOATResponse
| Field | Type | Description |
|---|---|---|
rate | string | Approximate amount received per 1 unit paid |
receiveAmount | string | Estimated amount received, after all fees |
minAmount | string | Minimum amount to pay for this pair |
maxAmount | string | Maximum amount to pay for this pair |
JSON
{
"code": 0,
"message": "ok",
"data": {
"rate": "0.00001524",
"receiveAmount": "0.01512518",
"minAmount": "10",
"maxAmount": "500000"
}
}Floating vs fixed rate
Floating FLOAT | Fixed FIXED | |
|---|---|---|
| Amount received | Based on the market price when funds arrive; may differ slightly from the quote | Locked when the order is created |
| Lock period | None | Payment must arrive within 15 minutes of creating the order |
| Refund address | Optional | Required |
| Best for | Most cases | Users who need a guaranteed amount |
If a fixed-rate payment arrives after the lock period, or the amount paid differs from the order, the order moves to ACTION_REQUIRED and you choose to continue at market price or refund — see Exception orders.
Possible errors
| code | Description |
|---|---|
40000 | Missing or malformed parameter |
42001 | Currency or network not supported |
42002 | Paying and receiving the same currency on the same network |
42003 / 42004 | Amount below the minimum or above the maximum |
42007 | Fixed rate temporarily unavailable |
42008 | Above the fixed-rate limit per order |
42009 | Amount received after fees is too small |
42010 | Quote temporarily unavailable — retry later |
42013 | Pair not supported for direct swaps |
Need help with your integration? Contact support: [email protected]