Exchange rate

How much quote currency you get for one unit of the base. USDINR is rupees per dollar. /api/v1/fx lists a few common pairs.

View Docs

Parameters

pair string Required

Pair in the path. USDINR, EURUSD, GBPUSD, USDJPY, or another 6 letter pair.

Example: USDINR

amount number

How many units of the base currency to convert. Defaults to 1.

Example: 10

Responses

200 OK Success
{
  "ok": true,
  "kind": "fx",
  "pair": "USDINR",
  "base": "USD",
  "quote": "INR",
  "price": 95.82,
  "amount": 10,
  "total": 958.2
}
400 BAD_REQUEST pair looks wrong
502 BAD_GATEWAY could not load that rate