PriceField
- class qf_lib.common.enums.price_field.PriceField(value)[source]
Bases:
Enum
Represents one of the data fields that corresponds to OHLC and Volume.
Attributes:
Close Price
High Price
Low Price
Open Price
Volume
Methods:
ohlc
()Return a list of all possible price field values.
ohlcv
()Return a list of all possible price field values.
- Close = 4
Close Price
- High = 2
High Price
- Low = 3
Low Price
- Open = 1
Open Price
- Volume = 5
Volume
- static ohlc() List[PriceField] [source]
Return a list of all possible price field values.
- Returns:
list of all price field values
- Return type:
List[PriceField]
- static ohlcv() List[PriceField] [source]
Return a list of all possible price field values.
- Returns:
list of all price field values
- Return type:
List[PriceField]