TradeBars
QuantConnect.Data.Market.TradeBars
TradeBars()
TradeBars(frontier: Union[datetime, date])
Bases: DataDictionary[TradeBar]
Collection of TradeBars to create a data type for generic data handler:
Creates a new instance of the TradeBars 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.