Endpoint

POST /v1/common/convert/fiatToCrypto

Request Parameters

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

Response Parameters

ParameterTypeRequiredDescription
outAmountStringYesThe converted amount in cryptocurrency.

Response Example

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