Skip to content

API reference

NameDescription
createFrankfurterClient(options?)Returns new FrankfurterClient(options)

new FrankfurterClient(options?: FrankfurterClientOptions)

MethodReturns
rates(query?, requestOptions?)Promise<Rate[]>
latest(options?, requestOptions?)Promise<Rate[]>
historical(date, options?, requestOptions?)Promise<Rate[]>
range(from, to?, options?, requestOptions?)Promise<Rate[]>
currencies(query?, requestOptions?)Promise<Currency[]>
providers(requestOptions?)Promise<Provider[]>

  • FrankfurterError: failed HTTP response (status, statusText, url, body, headers)

CurrenciesQuery, Currency, CurrencyCode, CurrencyScope, DateString, ErrorResponseBody, FrankfurterClientOptions, GroupBy, HistoricalRatesOptions, LatestRatesOptions, Listable, Provider, ProviderKey, RangeRatesOptions, Rate, RatesQuery, RequestOptions

For field-level detail, see types.ts in the repository.