Skip to content

ISecurityProvider

QuantConnect.Securities.ISecurityProvider

Represents a type capable of fetching the holdings for the specified symbol

get_security

get_security(
    symbol: Union[Symbol, str, BaseContract],
) -> Security

Retrieves a summary of the holdings for the specified symbol

Parameters:

Name Type Description Default
symbol Union[Symbol, str, BaseContract]

The symbol to get holdings for

required

Returns:

Type Description
Security

The holdings for the symbol or null if the symbol is invalid and/or not in the portfolio.