Nodemill Addins


Install Fields, APIs and pages (coming soon) using the public repository.

Search:
Within:

Nodemill API: currency

Nodemill Version Nodemill Downloads

Install

nodemill install api currency

Details

  • Author: Paul Burrowes
  • Short desc: Collect currency conversion rates for multiple currencies
  • Keywords: currency,dollar,pound

Node dependencies

  • request
  • moment

Full Description

Check out the latest currency conversion rates. All rates are against the GBP, if you want them against a different currency you can cross-multiply Rates are cached for 60 minutes, so are pretty recent - cache time can be altered in API code.

Version history

  • 1.0.0 Created
  • 1.0.1 Moved cache to private/currencycache

Examples

/api/currency/eur,chf,usd

Response:

{
    "headers": {
        "code": 200
    },
    "data": {
        "eur": 1.1604,
        "chf": 1.2639,
        "usd": 1.3018
    },
    "md5": "b52b0d"
}