Integrate Divisa.do
Dominican exchange rates in your application. No account or API key required.
Base URL
https://api.divisa.doMake your first request
Request USD quotes in Dominican pesos. The response includes data and pagination metadata.
curl --fail-with-body 'https://api.divisa.do/v1/rates?currency=USD&fields=institutionId,currency,buy,sell,channel,kind,stale,lastCheckedAt,expiresAt&limit=5' \
-H 'Accept: application/json'const response = await fetch(
'https://api.divisa.do/v1/rates?currency=USD&fields=institutionId,currency,buy,sell,channel,kind,stale,lastCheckedAt,expiresAt&limit=5',
{ headers: { Accept: 'application/json' } }
);
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
const { data, meta } = await response.json();
console.log(data);What you need to do
Preserve precision
Keep rates as decimal strings. Use a decimal library for monetary calculations. Do not multiply money with floating-point arithmetic or replace null with zero.