currency_exchange_rates

Store new currency exchange rates under this date

Stores a new set of exchange rates. The date is fixed (in the URL parameter) and the data required can be submitted as a JSON body.

post/v1/exchange-rates/by-date/{date}

Path parameters

datestring string required

Headers

X-Trace-Idstring uuid
Example:40c71bbb-c676-4f24-83cf-cc725d7d7a00

Unique identifier associated with this request.

Request body

fromstring string required

The 'from'-currency

ratesobject required

The actual entries for this data set. They 'key' value is 'to' currency. The value is the exchange rate.

Example request

{
  "from": "EUR",
  "rates": {
    "USD": "1.2345",
    "GBP": "6.3456"
  }
}

Response

New exchange rates stored, result in response. If a rate already existed for any submitted entry, it will be updated.

Changes

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