ForexProviderBase

class app.components.providers.forex.forex.ForexProviderBase[source]

Bases: ProviderBase, Generic

Inheritance diagram of ForexProviderBase

Inheritance Diagram for ForexProviderBase

Methods

convert_currency(amount, from_currency, ...)

get_daily_rate(from_currency, to_currency, date)

Attributes

config_class

decimal

config

config_class: OandaForexProviderConfig = C
convert_currency(amount, from_currency, to_currency, date)[source]
Return type:

Decimal

Parameters:
  • amount (Decimal)

  • from_currency (Currency | str)

  • to_currency (Currency | str)

  • date (date)

get_daily_rate(from_currency, to_currency, date)[source]
Return type:

Decimal

Parameters:
  • from_currency (Currency | str)

  • to_currency (Currency | str)

  • date (date)