Skip to main content

Send Quote Request(USER_DATA)

API Description

Request a quote for the requested token pairs

HTTP Request

POST /sapi/v1/convert/getQuote

Request Weight

200(UID)

Request Parameters

NameTypeMandatoryDescription
fromAssetSTRINGYES
toAssetSTRINGYES
fromAmountDECIMALEITHERWhen specified, it is the amount you will be debited after the conversion
toAmountDECIMALEITHERWhen specified, it is the amount you will be credited after the conversion
walletTypeENUMNOIt is to choose which wallet of assets. The wallet selection is SPOT, FUNDING and EARN. Combination of wallet is supported i.e. SPOT_FUNDING, FUNDING_EARN, SPOT_FUNDING_EARN or SPOT_EARN Default is SPOT.
validTimeENUMNO10s, 30s, 1m, default 10s
recvWindowLONGNOThe value cannot be greater than 60000
timestampLONGYES
  • Either fromAmount or toAmount should be sent
  • quoteId will be returned only if you have enough funds to convert

Response Example

{
"quoteId":"12415572564",
"ratio":"38163.7",
"inverseRatio":"0.0000262",
"validTimestamp":1623319461670,
"toAmount":"3816.37",
"fromAmount":"0.1"
}