API reference

Quote

Returns a live quote for a swap. The estimated amount received already includes all fees.

GET/api/open/v1/rate

Parameters

Query string:

ParameterTypeRequiredDescription
fromstringYesCurrency to pay, e.g. USDT
fromNetworkstringYesNetwork to pay on, e.g. TRC20
tostringYesCurrency to receive, e.g. BTC
toNetworkstringYesNetwork to receive on, e.g. Bitcoin
amountstringYesAmount to pay
rateTypestringNoFLOAT (floating, default) or FIXED (fixed)
HTTP
GET /api/open/v1/rate?from=USDT&fromNetwork=TRC20&to=BTC&toNetwork=Bitcoin&amount=1000&rateType=FLOAT

Response

FieldTypeDescription
ratestringApproximate amount received per 1 unit paid
receiveAmountstringEstimated amount received, after all fees
minAmountstringMinimum amount to pay for this pair
maxAmountstringMaximum 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 FLOATFixed FIXED
Amount receivedBased on the market price when funds arrive; may differ slightly from the quoteLocked when the order is created
Lock periodNonePayment must arrive within 15 minutes of creating the order
Refund addressOptionalRequired
Best forMost casesUsers 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

codeDescription
40000Missing or malformed parameter
42001Currency or network not supported
42002Paying and receiving the same currency on the same network
42003 / 42004Amount below the minimum or above the maximum
42007Fixed rate temporarily unavailable
42008Above the fixed-rate limit per order
42009Amount received after fees is too small
42010Quote temporarily unavailable — retry later
42013Pair not supported for direct swaps

Need help with your integration? Contact support: [email protected]