TradingSystemΒΆ
-
class
alchemist_lib.database.ts.
Ts
(ts_name, aum, ptf_type, datetime_added=datetime.datetime(2018, 4, 12, 19, 34, 26, 292288))[source] Map class for table ts.
- ts_name: String(150), primary_key.
- datetime_added: DateTime, not null.
- aum: Float(20, 8), not null.
- ptf_type: String(150), not null.
-
__eq__
(other)[source] Overrides the default implementation.
-
__hash__
()[source] Overrides the default implementation.
-
__init__
(ts_name, aum, ptf_type, datetime_added=datetime.datetime(2018, 4, 12, 19, 34, 26, 292288)) Costructor method.
Parameters: - ts_name (str) – Name of the trading system.
- datetime_added (datetime.datetime, optional) – Last date and time when the trading system was initialized. Default is the moment of initialization in UTC format.
- aum (decimal.Decimal) – The value of assets under management of the trading system.
- ptf_type (str) – String that identify the type of the portfolio.
-
to_dict
()[source] As the name tell, it returns attributes in a dict form.
Note
The __dict__ method is not overrideble.