Market Rates
Current exchange rate for one currency pair
Live mid-market rate between two currencies, refreshed roughly every 60 seconds. Requires an API key: pass it as Authorization: Bearer art_live_... or, for simple cross-origin GETs, as ?key= (alias ?apiKey=). CORS-enabled.
get/api/rate
Request
- Base URL: https://allratestoday.com
- URL: https://allratestoday.com/api/rate
- Auth: one of:
- HTTP bearer
- API key in query parameter key
Query parameters
sourcestring required
Example:USD
Source currency code (ISO 4217)
targetstring required
Example:EUR
Target currency code (ISO 4217)
keystring
Example:art_live_xxxxx
API key (alternative to the Authorization header; apiKey also accepted)
apiKeystring
Alias for key — the same query-string fallback under its camelCase name.
Response
Current rate
Example response
{
"rate": 0.92145,
"source": "mid-market"
}Changes
No recorded changes to this operation across all 1 revision of this API.