_SliceExtensions_Get
QuantConnect.Data._SliceExtensions_Get
__call__
__call__(
slices: List[Slice],
type: Type,
symbol: Union[
Symbol, str, BaseContract, Security
] = None,
) -> Sequence[Any]
__call__(
slices: List[Slice],
symbol: Union[Symbol, str, BaseContract, Security],
) -> Sequence[TradeBar]
__call__(
slices: List[Slice],
symbol: Union[Symbol, str, BaseContract, Security],
field: Callable[[BaseData], float],
) -> Sequence[float]
Signature descriptions:
-
Gets the data dictionaries or points of the requested type in each slice
-
Gets an enumerable of TradeBar for the given symbol. This method does not verify that the specified symbol points to a TradeBar
-
Gets an enumerable of decimal by accessing the slice for the symbol and then retrieving the specified field on each piece of data
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slices
|
List[Slice]
|
The enumerable of slice |
required |
type
|
Optional[Type]
|
Data type of the data that will be fetched |
None
|
symbol
|
Union[Symbol, str, BaseContract, Security]
|
The symbol to retrieve |
None
|
field
|
Optional[Callable[[BaseData], float]]
|
The field selector used to access the dats |
None
|
Returns:
| Type | Description |
|---|---|
Sequence[Any] | Sequence[TradeBar] | Sequence[float]
|
Depends on the signature used. Case 1: [An enumerable of data dictionary or data point of the requested type.]; Case 2: [An enumerable of TradeBar for the matching symbol, of no TradeBar found for symbol, empty enumerable is returned.]; Case 3: [An enumerable of decimal.] |
__getitem__
__getitem__(
type: Type[QuantConnect_Data_SliceExtensions_Get_T],
) -> _Typed_SliceExtensions_Get[
QuantConnect_Data_SliceExtensions_Get_T
]