InstrumentΒΆ

class alchemist_lib.database.instrument.Instrument(instrument_type)[source]

Map class for table instrument.

  • instrument_id: Integer, primary_key.
  • instrument_type: String(50), not null.
__eq__(other)[source]

Overrides the default implementation.

Reference:
https://stackoverflow.com/questions/390250/elegant-ways-to-support-equivalence-equality-in-python-classes
__ge__(other)[source]

Overrides the default implementation.

__gt__(other)[source]

Overrides the default implementation.

__hash__()[source]

Overrides the default implementation.

__init__(instrument_type)

Costructor method.

Parameters:instrument_type (-) – Type of financial instrument.
__le__(other)[source]

Overrides the default implementation.

__ne__(other)[source]

Overrides the default implementation.

to_dict()[source]

As the name tell, it returns attributes in a dict form.

Note

The __dict__ method is not overrideble.