Endpoint

POST /v1/common/convert/cryptoToFiat

Request Parameters

ParameterTypeRequiredDescription
inCurrencyStringYesThe code of the source cryptocurrency (e.g., USDT, BTC).
inAmountStringYesThe amount to be converted.
outCurrencyStringYesThe code of the target fiat currency (e.g., USD, CNY).
timestampLongYesUNIX timestamp (in milliseconds).

Response Parameters

ParameterTypeRequiredDescription
outAmountStringYesThe converted amount in fiat currency.

Response Example

{
    "code": 200,
    "msg": "success",
    "timestamp": "1725674596300",
    "data": {
        "outAmount": "588.66"
    }
}