ForexAnnotationDependencyHandler

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

Bases: EntityDependencyEventHandlerImpl[ForexAnnotationRecord, TransactionRecord | InstrumentRecord]

Inheritance diagram of ForexAnnotationDependencyHandler

Inheritance Diagram for ForexAnnotationDependencyHandler

Methods

attribute_matchers(owner, record, attribute, ...)

entity_matchers(owner, record)

handler(owner, event, record, *[, ...])

Attributes

on_deleted

on_updated

static attribute_matchers(owner: ForexAnnotationRecord, record: TransactionRecord | InstrumentRecord, attribute: str, value: Any) bool[source]
Parameters:
Return type:

bool

static entity_matchers(owner: ForexAnnotationRecord, record: TransactionRecord | InstrumentRecord) bool[source]
Parameters:
Return type:

bool

static handler(owner: ForexAnnotationRecord, event: EntityDependencyEventType, record: TransactionRecord | InstrumentRecord, *, matched_attributes: frozenset[str] | None = None) None[source]
Parameters:
Return type:

None

on_deleted: bool = False
on_updated: bool = True