Skip to content

_SliceExtensions_TryGet

QuantConnect.Data._SliceExtensions_TryGet

__call__

__call__(
    slice: Slice,
    type: Type,
    symbol: Union[Symbol, str, BaseContract, Security],
    data: Optional[Any],
) -> Tuple[bool, Any]

Tries to get the data for the specified symbol and type

Parameters:

Name Type Description Default
slice Slice

The slice

required
type Type

The type of data we seek

required
symbol Union[Symbol, str, BaseContract, Security]

The symbol data is sought for

required
data Optional[Any]

The found data

required

Returns:

Type Description
Tuple[bool, Any]

True if data was found for the specified type and symbol.

__getitem__

__getitem__(
    type: Type[QuantConnect_Data_SliceExtensions_TryGet_T],
) -> _Typed_SliceExtensions_TryGet[
    QuantConnect_Data_SliceExtensions_TryGet_T
]