ForexProvider
- class app.components.providers.forex.forex.ForexProvider[source]
-
Inheritance Diagram for ForexProvider
Methods
convert_currency
(amount, *, source, target, date)get_daily_rate
(*, source, target, date)Attributes
config
- config_class
alias of
ForexProviderConfig
- convert_currency(amount: Decimal, *, source: Currency | str, target: Currency | str, date: datetime.date) Decimal [source]
- Parameters:
amount (Decimal)
source (Currency | str)
target (Currency | str)
date (datetime.date)
- Return type:
Decimal
- get_daily_rate(*, source: Currency | str, target: Currency | str, date: datetime.date) Decimal [source]
- Parameters:
source (Currency | str)
target (Currency | str)
date (datetime.date)
- Return type:
Decimal