OhlcvΒΆ
-
class
alchemist_lib.database.ohlcv.
Ohlcv
[source] Map class for table ohlcv.
- ohlcv_datetime: DateTime, primary_key.
- timeframe_id: String(4), not null, primary_key.
- ticker: String(16), not null, primary_key, foreign_key(asset.ticker).
- instrument_id: Integer, not null, primary_key, foreign_key(asset.instrument_id).
- open: Float(20, 8), not null.
- high: Float(20, 8), not null.
- low: Float(20, 8), not null.
- close: Float(20, 8), not null.
- volume: Float(20, 8), not null.
- Relationship:
- asset: Asset instance. (Many-to-One)
-
__eq__
(other)[source] Overrides the default implementation.
-
__hash__
()[source] Overrides the default implementation.
-
__init__
() Costructor method without args.
-
to_dict
()[source] As the name tell, it returns attributes in a dict form.
Note
The __dict__ method is not overrideble.