Get a single exchange rate pair

Returns the blended exchange rate for a single currency pair. Without a date param, returns the latest rate. A same-currency pair returns the identity rate of 1.

get/rate/{base}/{quote}

Path parameters

basestring required
Example:EUR
quotestring required
Example:USD

Query parameters

datestring date
Example:2024-01-15

Specific date (YYYY-MM-DD). Cannot be combined with from/to.

providersstring
Example:ECB,TCMB

Comma-separated list of data providers to include

Response

Exchange rate

datestring date required

The date of the rate

basestring required

Base currency code

quotestring required

Quote currency code

ratenumber required

Exchange rate value

Changes

Changed in 7 of the 29 revisions of this API.28

    • added the non-success response with the status 503

      response-non-success-status-added

    • added the required property providers/items/date to the response with the 200 status

      response-required-property-added

  • v24041a71e286513See the full diff
    • the providers/items/ response's property type/format changed from string/ to object/ for status 200

      response-property-type-changed

    • added the optional property providers/items/excluded to the response with the 200 status

      response-optional-property-added

    • added the required property providers/items/key to the response with the 200 status

      response-required-property-added

    • added the required property providers/items/rate to the response with the 200 status

      response-required-property-added

    • added the optional property providers to the response with the 200 status

      response-optional-property-added

    • added the new optional query request parameter date

      new-optional-request-parameter

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog