fx
Latest FX rate
https://docs.economicsapi.com/endpoints/getfx
gethttps://api.economicsapi.com/v1/fx/{slug}
Use a slug returned by getFxAvailable. Returns the observed date, decimal value, unit and source. FX aliases include EUR-USD and EURUSD. These are reference rates, not live quotes.
curl -X GET "https://api.economicsapi.com/v1/fx/example" \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"Authorization
AuthorizationstringheaderrequiredBearer token. API key from your economicsapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.
Path parameters
slugstringrequiredResponse
200Successful Response
application/jsondataMarketOutrequired401Missing or invalid API key
application/jsonerrorstringmessagestringrequest_idstring422Validation Error
application/jsondetailValidationError[]429Rate limit exceeded
application/jsonerrorstringmessagestringrequest_idstring