PriceField¶
-
class
qf_lib.common.enums.price_field.
PriceField
(value)[source]¶ Bases:
enum.Enum
Represents one of the data fields that corresponds to OHLC and Volume.
Attributes
Open Price
High Price
Low Price
Close Price
Volume
Methods
ohlcv
()Return a list of all possible price field values.
ohlc
()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[qf_lib.common.enums.price_field.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[qf_lib.common.enums.price_field.PriceField][source]¶ Return a list of all possible price field values.
- Returns
list of all price field values
- Return type
List[PriceField]
-