Get pay-in rate
Returns the current reference pay-in rate for a currency (fiat per 1 USDT).
POST
/api/open/order/getBuyRateFull URL = your API base URL + this path. The base URL is shown in the merchant console under Developers → API & callbacks.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
merchantNo | string | Yes | Merchant number |
currencyType | string | Yes | Currency code, e.g. CNY |
Response
| Field | Type | Description |
|---|---|---|
rate | number | Pay-in rate, at most two decimals |
json
{ "code": 0, "message": "success", "data": { "rate": 7.3 } }TIP
The rate changes with the market and trader quotes and is for reference only. The rate actually applied is fixed when the order is created; see rate in Get order.
Common errors
40010, 40012, 40017. When no matching pool is available it currently returns 500; this will change to 40011.