Skip to content

An Elixir service to fetch/cache exchange rates from exchangerate-api.com

License

Notifications You must be signed in to change notification settings

Streamaze/exchange-rate-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exchange Rate API

Fetch the exchange rate for various currencies based on the Exchange Rate API. This is a wrapper around the API and is not affiliated with the Exchange Rate API. Responses are cached for 1 hour before re-fetching.

  • Example Request: GET /v1/rates/usd,gbp,eur,cad
    • The currency request can be singular or CSV

Response:

{
    "status": "ok",
    "data": {
        "usd": 1,
        "gbp": 0.824978,
        "eur": 0.934425,
        "cad": 1.33451
    }
}

Run Locally

Pre-requisites: Elixir

  git clone https://github.com/zaneh/exchange-rate-api
  cd exchange-rate-api
  mix deps.get
  mix run --no-halt

About

An Elixir service to fetch/cache exchange rates from exchangerate-api.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 95.8%
  • Dockerfile 4.2%