improved
Exchange Rates - Refinement
about 1 month ago by Shubham Nagota
To improve consistency and clarity in exchange rate representations for currency conversions, we are updating the exchangeRate
field calculation in the withdraw quotes API response. This change affects how exchange rates are displayed for withdrawals while maintaining the existing behavior for deposits.
API Endpoint: /v2/exchange-rates/withdraw
/v2/exchange-rates/withdraw
Changes Introduced
- Exchange Rate Calculation - The
exchangeRate
field in the withdraw quotes response will now represent the rate asUSDC to currency
instead ofcurrency to USDC
- Deposit Behavior - Exchange rates for deposits will continue to use the existing
currency to USDC
rate format
API Response - Current Implementation
{
"exchangeRate": "0.000064", // IDR to USDC rate
"currency": "IDR",
"amount": "1000000"
}
API Response - New Implementation
{
"exchangeRate": "15625", // USDC to IDR rate
"currency": "IDR",
"amount": "1000000"
}
Impact
- This change only affects the withdraw quotes endpoint where the customer has any reference to 'exchange rate' field on their UI/Pricing logics
- Deposit quote endpoints remain unchanged