ForexProvider

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

Bases: Provider, Generic

Inheritance diagram of ForexProvider

Inheritance Diagram for ForexProvider

Methods

convert_currency(amount, *, source, target, date)

default_key()

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:
Return type:

Decimal

default_key() str[source]
Return type:

str

get_daily_rate(*, source: Currency | str, target: Currency | str, date: datetime.date) Decimal[source]
Parameters:
Return type:

Decimal