GET/projects/api/v3/exchange-rates/{BaseCurrency}.json

Get all exchange rates for a base currency

Retrieves all current exchange rates for the specified base currency from the Forex service.

Path Params

  • Name
    BaseCurrency
    Type
    string
    required
    Description

    Base currency code (e.g., USD, EUR).

Responses

  • Code
    200
    Type
    object
    Schema
    Description
    200 OK
    ExchangeRatesResponse contains all exchange rates for a base currency.
  • Code
    400
    Type
    object
    Schema
    Description
    400 Bad Request
    ErrorResponse defines how []Error should be marshaled to JSON.
  • Code
    404
    Type
    object
    Schema
    Description
    404 Not Found
    ErrorResponse defines how []Error should be marshaled to JSON.

Examples

200 OK

ExchangeRatesResponse
{
  "baseCurrency": "string",
  "rates": [
    {
      "date": {
        "Day": 0,
        "Month": 0,
        "Year": 0
      },
      "fromCurrency": "string",
      "rate": 0,
      "toCurrency": "string"
    }
  ]
}