Get exchange rates
Returns exchange rates for all supported currency pairs
Query Parameters
- Type: stringwidget
_id Widget ID from the partner dashboard
- Type: booleanuse
_partner _fee Whether to apply the partner fee to the returned rates
- Type: booleanuse
_fee Whether to include the platform fee in the returned rates
- Type: booleanflatten
_result Whether to return rates in a flat key-value format instead of nested objects
- Type: booleanis
_amount _without _fee Whether the returned amounts exclude fees
- Type: stringnetwork
Blockchain network identifier for layer-2 filtering
Responses
- application/json
Request Example for get/public/rates
curl 'https://sandbox-api.mrcr.io/v1.6/public/rates?widget_id=&use_partner_fee=true&use_fee=true&flatten_result=true&is_amount_without_fee=true&network='
{
"Status": 1,
"data": {
"buy": {
"additionalProperty": {
"additionalProperty": {
"amount": 1,
"rates": "string"
}
}
},
"sell": {
"additionalProperty": {
"additionalProperty": {
"amount": 1,
"rates": "string"
}
}
}
}
}