Ticks
QuantConnect.Data.Market.Ticks
Ticks()
Ticks(frontier: Union[datetime, date])
Bases: DataDictionary[List[Tick]]
Ticks collection which implements an IDictionary-string-list of ticks. This way users can iterate over the string indexed ticks of the requested symbol.
Initializes a new instance of the Ticks dictionary
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frontier
|
Optional[Union[datetime, date]]
|
The time associated with the data in this dictionary |
None
|
time
time: datetime
Gets or sets the time associated with this collection of data
__getitem__
__getitem__(
symbol: Union[Symbol, str, BaseContract],
) -> QuantConnect_Data_Market_DataDictionary_T
Gets or sets the element with the specified key.
__setitem__
__setitem__(
symbol: Union[Symbol, str, BaseContract],
value: QuantConnect_Data_Market_DataDictionary_T,
) -> None
Gets or sets the element with the specified key.
get_value
get_value(
key: Union[Symbol, str, BaseContract],
) -> QuantConnect_Data_Market_DataDictionary_T
Gets the value associated with the specified key.