LedgerSchema

class app.portfolio.models.ledger.ledger_schema.LedgerSchema[source]

Bases: EntitySchemaBase, Generic

Inheritance diagram of LedgerSchema

Inheritance Diagram for LedgerSchema

Methods

Attributes

instrument

transactions

instrument: Annotated[Instrument, InstanceOf()] = FieldInfo(annotation=NoneType, required=True, description='The financial instrument associated with this ledger, such as a stock, bond, or currency.', json_schema_extra={'readOnly': True})
transactions: OrderedViewSet[Transaction] = FieldInfo(annotation=NoneType, required=False, default_factory=OrderedViewSet[Transaction], description='A set of transactions associated with this ledger.')