Skip to main content

3.0 Get Rate

Get exchange rate for a specific amount and currency pair. Consider transaction type to get rates for on ramp and off ramp

Method: POST
Endpoint: /accounts/getRate

Request Body:

{
"amount": 10,
"currency": "ZAR",
"asset_code": "USDT",
"provider_id": 2,
"transaction_type": "off_ramp"
}

Response Example:

{
"status": 200,
"message": "success",
"data": {
"from": "USDT",
"to": "ZAR",
"value": 150.50,
"fiatAmount": 150.50,
"transactionAmount": "148.75",
"cryptoAmount": 10,
"fee": "1.75",
"transactionType": "off_ramp"
}
}