InstrumentSchema

class app.portfolio.models.instrument.instrument_schema.InstrumentSchema[source]

Bases: EntitySchemaBase

Inheritance diagram of InstrumentSchema

Inheritance Diagram for InstrumentSchema

Methods

Attributes

currency

isin

ticker

currency: Currency = FieldInfo(annotation=NoneType, required=True, description='The currency in which the instrument is denominated.')
isin: str | None = FieldInfo(annotation=NoneType, required=False, default=None, description='International Securities Identification Number (ISIN) of the instrument.', exclude_if=<function InstrumentSchema.<lambda>>, metadata=[MinLen(min_length=1)])
ticker: str | None = FieldInfo(annotation=NoneType, required=False, default=None, description='Ticker symbol of the instrument, used for trading and identification.', exclude_if=<function InstrumentSchema.<lambda>>, metadata=[MinLen(min_length=1)])