# 3. Fiat-to-cryptocurrency exchange quotes

Request method

  • POST

Request URL

/api/v3/exchange/quote/buy

Request Type

Header: { "Content-Type": "application/json; charset=utf-8" }

Request header parameters

Param Type Description Sample
access_key String Merchant backend acquisition pFqV75X3
timestamp String 13-bit Unix millisecond timestamp 1679724896223
nonce String UUID v4 random string 794c26b0-d33c-4394-b2bb-c485eca16d9e
sign String Sign the result with secret_key kAXyh+eerqrefyaF8dyFB0M4FVo=

Request Example

{
    "tradeType": "SELL",
    "chainType": "BSC",
    "tokenType": "USDT",
    "tokenAmount": "1",
    "currencyType": "INR"
}

Request parameter description

Param Type Required Description
chainType String yes Chain type BSC
payType String no Payment TypePIX BANK UPI
tokenType String yes Token Type USDT
currencyType String yes Currency TypeBRL INR
tradeType String yes Transaction TypeBUY SELL
tokenAmount Decimal yes Transaction amount

Response type

Header: { "Content-Type": "application/json; charset=utf-8" }

Example Response

{
    "code": "200",
    "success": true,
    "msg" : "Success" ,
    "msgEn": "SUCCESS",
    "data": {
        "chainType": "BSC",
        "currencyAmount": "83.24",
        "tokenAmount": "1",
        "currencyType": "INR",
        "tokenType": "USDT",
        "tradeType": "BUY",
        "exchangePrice": "83.2309",
        "orderFee": "0.0118"
    }
}

Response Parameter Description

Parameter name type describe
chainType String Main Chain
currencyAmount String Amount in Fiat Currency
tokenAmount String Token Amount
currencyType String Fiat currency type
tokenType String Token Type
tradeType String Transaction Type
exchangePrice String exchange rate
orderFee String Fees