Exchange rates

Parameters

HTTP method

Access rights

URL

Note

GET public_data https://api.admitad.com/currencies/rate/

Returns the exchange rate for the selected currency pair.

List of GET-parameters for a request

Name

Description

base

Source currency code (System currencies)

target

Destination currency code (System currencies)

date

Date of the exchange rate in the dd.mm.yyyy format

  • All parameters are required.

  • Currency codes should be provided as defined by ISO 4217

List of response fields

Name

Description

base

Source currency code (System currencies)

target

Destination currency code (System currencies)

date

Date of the exchange rate

rate

Exchange rate (base * rate = target)

  • Currency codes should be provided as defined by ISO 4217

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/currencies/rate/?base=EUR&target=USD&date=24.06.2014

Example of the response from the API server in the JSON format:

{
    "date": "2014-06-24",
    "rate": "1.3600000000",
    "base": "EUR",
    "target": "USD"
}