Skip to content

Get Exchange Price

Retrieve an exchange quote / price.

Endpoint

GET /cashout/exchange/price

Authentication

Merchant Credential. See Authentication.

Important Notes

WARNING

Get exchange price

Request headers

NameInTypeRequiredDescriptionExample
X-NonceheaderstringYes{{$string.nanoid}}
X-Merchant-IdheaderstringYes{{MerchantId}}
X-TimestampheaderstringYes{{$date.timestamp}}
DigestheaderstringYesSHA-256=Jr9cX0nM6yT7uF9GQ5G8ZC5M8vRZrQZP9+VbQ8Z8z0Q=
AuthorizationheaderstringYesSignature keyId="{{MerchantAppId}}",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="MEUCIQD8VxkzR7q5hF3k9dY0v6mKk7K0Nq9nYw+7Ck8LJr9mYAIgC5VQ7J0Z9YqL5F8Wc6E2Yw5qf1z8bYyYcR9kX8pY="

Query parameters

NameInTypeRequiredDescriptionExample
pairquerystringYesPair typeUSDT_BRL
settlementquerystringYesSettlement cycleT0
amountquerystringNoExchange amount520

Response

HTTP 200 — Success

FieldTypeRequiredDescription
statusintegerYes
msgstringYes
dataobjectYes

data fields

FieldTypeRequiredDescription
pricenumberYesExchange rate
expireTimeintegerYesExpiration timestamp
priceIdintegerYesPrice ID
settlementstringYesSettlement cycle
amountstringYesExchange amount

Response example

json
{
  "status": 200,
  "msg": "success",
  "data": {
    "price": 5.432198,
    "expireTime": 1714475102,
    "priceId": 12876,
    "settlement": "T0",
    "amount": "1500.00"
  }
}