ForexAnnotationDependencyHandler
- class app.portfolio.models.annotation.forex.forex_annotation.ForexAnnotationDependencyHandler[source]
Bases:
EntityDependencyEventHandlerImpl
[ForexAnnotationRecord
,TransactionRecord
|InstrumentRecord
]Inheritance Diagram for ForexAnnotationDependencyHandler
Methods
attribute_matchers
(owner, record, attribute, ...)entity_matchers
(owner, record)handler
(owner, event, record, *[, ...])Attributes
- static attribute_matchers(owner: ForexAnnotationRecord, record: TransactionRecord | InstrumentRecord, attribute: str, value: Any) bool [source]
- Parameters:
owner (ForexAnnotationRecord)
record (TransactionRecord | InstrumentRecord)
attribute (str)
value (Any)
- Return type:
- static entity_matchers(owner: ForexAnnotationRecord, record: TransactionRecord | InstrumentRecord) bool [source]
- Parameters:
owner (ForexAnnotationRecord)
record (TransactionRecord | InstrumentRecord)
- Return type:
- static handler(owner: ForexAnnotationRecord, event: EntityDependencyEventType, record: TransactionRecord | InstrumentRecord, *, matched_attributes: frozenset[str] | None = None) None [source]
- Parameters:
owner (ForexAnnotationRecord)
event (EntityDependencyEventType)
record (TransactionRecord | InstrumentRecord)
- Return type:
None