Creates a new instance of ForexClient
Optionaloptions: ForexClientOptions = {}The options for configuring the client
Fetches the list of available currencies
Optionaldate: Date | "latest" = 'latest'The date for fetching currencies, or "latest" for the most recent
Optionaloptions: RequestInit = {}Additional request options
A list of available currencies
Fetches the exchange rates for a specific currency
Optionalcode: string = ...The currency code or locale code to get rates for
Optionaldate: Date | "latest" = 'latest'The date for the rates, or 'latest' for the most recent
Optionaloptions: RequestInit = {}Additional request options
A list of exchange rates
Fetches the exchange rate between two currencies
OptionalbaseCode: string = ...The base currency code or locale code
OptionaldestCode: stringThe destination currency code or locale code
Optionaldate: Date | "latest" = 'latest'The date for the rate, or 'latest' for the most recent
Optionaloptions: RequestInit = {}Additional request options
The exchange rate
Converts an amount from one currency to another
OptionalbaseCode: string = ...The base currency code or locale code
OptionaldestCode: stringThe destination currency code or locale code
Optionalamount: string | number = 0The amount to convert
Optionaldate: Date | "latest" = 'latest'The date for the conversion rate, or 'latest' for the most recent
Optionaloptions: RequestInit = {}Additional request options
The converted amount
ProtectedgetProtected_fetch
A client to interact with the Forex API for fetching currency rates and conversion data