v1 - Exchange

Get exchange rate

Returns an exchange rate between base and target currencies for a given date

get/v1/exchange/rates/{base}/{target}

Request

  • Base URL
    https://light.inc (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Path parameters

basestring required

Base currency of the exchange rate

targetstring required

Target currency of the exchange rate

Query parameters

dateLocalDateParam

Date the exchange rate is requested for. If omitted, defaults to today

Response

default response

basestring
targetstring
ratenumber

Exchange rate between base and target currency

effectiveDatestring date

Effective date of the exchange rate. E.g., rate requested on Saturday will have the effective date Friday

requestedDatestring date

Date the exchange rate is requested for

Example response

{
  "base": "USD",
  "target": "USD"
}

Changes

No recorded changes to this operation across all 1 revision of this API.