Light APIv1.0.0

API / Reference / Exchange

Get currency exchange rates

GET https://api.light.inc/v1/exchange/rates/{currency}

Returns exchange rates for the given currency against all available currencies

Authorization

Send one of these on every request. See Authentication for how to get credentials.

  • API key

    Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

  • Bearer token

Path parameters

  • currency stringrequired

    Currency for which available exchange rates are requested for

Query parameters

  • date string · date

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

Response

  • base string

  • target string

  • rate number

    Exchange rate between base and target currency

  • effectiveDate string · date

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

  • requestedDate string · date

    Date the exchange rate is requested for