货币汇率 exchange rate

2016-10-18 0 By admin

Fixer.io is a free JSON API for current and historical foreign exchange rates published by the European Central Bank.

The rates are updated daily around 4PM CET.

Usage

Get the latest foreign exchange reference rates in JSON format.

http://api.fixer.io/latest

{
    "base": "EUR",
    "date": "2016-10-17",
    "rates": {
        "AUD": 1.4436,
        "BGN": 1.9558,
        "BRL": 3.5147,
        "CAD": 1.4433,
        "CHF": 1.0872,
        "CNY": 7.4075,
        "CZK": 27.024,
        "DKK": 7.44,
        "GBP": 0.90485,
        "HKD": 8.5304,
        "HRK": 7.5065,
        "HUF": 306.93,
        "IDR": 14355.97,
        "ILS": 4.2054,
        "INR": 73.4565,
        "JPY": 114.46,
        "KRW": 1253.18,
        "MXN": 20.8199,
        "MYR": 4.6367,
        "NOK": 9.0315,
        "NZD": 1.5433,
        "PHP": 53.357,
        "PLN": 4.3281,
        "RON": 4.5065,
        "RUB": 69.0709,
        "SEK": 9.7028,
        "SGD": 1.527,
        "THB": 38.776,
        "TRY": 3.4017,
        "USD": 1.0994,
        "ZAR": 15.6533
    }
}

Get historical rates for any day since 1999.

http://api.fixer.io/2000-01-03

Rates are quoted against the Euro by default. Quote against a different currency by setting the base parameter in your request.

http://api.fixer.io/latest?base=USD

Request specific exchange rates by setting the symbols parameter.

http://api.fixer.io/latest?symbols=USD,GBP

Make cross-domain JSONP requests.

http://api.fixer.io/latest?callback=?

An HTTPS endpoint is available.

https://api.fixer.io/latest

Use money.js in the browser.