ForexAnnotationImpl

class app.portfolio.models.annotation.forex.forex_annotation.ForexAnnotationImpl[source]

Bases: AnnotationImpl, EmptyClass

Inheritance diagram of ForexAnnotationImpl

Inheritance Diagram for ForexAnnotationImpl

Methods

get_consideration(currency)

get_consideration_in_currency(currency)

get_exchange_rate(currency)

Attributes

transaction

get_consideration(currency: Currency) Decimal | None[source]
Parameters:

currency (Currency)

Return type:

Decimal | None

get_consideration_in_currency(currency: Currency) Decimal[source]
Parameters:

currency (Currency)

Return type:

Decimal

get_exchange_rate(currency: Currency) Decimal | None[source]
Parameters:

currency (Currency)

Return type:

Decimal | None

property transaction: Transaction