Skip to content

Currency rates

Returns currency rates available in the system. Returned data can be limited with start, end and currency query parameters.

Download currency rates as JSON

Request

GET https://api.zoined.com/v2/download/currencyRates.json?limit=1000&offset=0&start=2018-01-01&end=2018-12-31&currency=SEK

Security
bearerAuth
Query
limitnumber

How many entries to return

Example:limit=1000
offsetnumber

Which offset to return data from

Example:offset=0
startstring

Returns currency rates from given date onward

Example:start=2018-01-01
endstring

Returns currency rates until given date

Example:end=2018-12-31
currencystring

Return only rates with given currencies as either source or target currency

Example:currency=SEK
curl -i -X GET \
  'https://zapi-api.zoined.com/_mock/v2/download/currencyRates.json?limit=1000&offset=0&start=2018-01-01&end=2018-12-31&currency=SEK' \
  -H 'Authorization: Bearer <YOUR_token_HERE>'

Responses

Request has been processed successfully.

Headers

  • Content-Type: application/json
Bodyapplication/json
source_currencystringrequired

Source currency as ISO 4217 currency code.

Example:"EUR"
target_currencystringrequired

Target currency as ISO 4217 currency code.

Example:"SEK"
valid_fromstringrequired

First day when the exchange rate is valid

Example:"2017-01-01"
valid_tostringrequired

Last day when the exchange rate is valid

Example:"2017-12-31"
ratenumberrequired

Exchange rate to from source to target currency

Example:0.1123
Response
{ "source_currency": "EUR", "target_currency": "SEK", "valid_from": "2017-01-01", "valid_to": "2017-12-31", "rate": 0.1123 }