Lean  $LEAN_TAG$
QuantConnect.Securities.SecurityProviderExtensions Class Reference

Provides extension methods for the ISecurityProvider interface. More...

Static Public Member Functions

static decimal GetHoldingsQuantity (this ISecurityProvider provider, Symbol symbol)
 Extension method to return the quantity of holdings, if no holdings are present, then zero is returned. More...
 

Detailed Description

Provides extension methods for the ISecurityProvider interface.

Definition at line 34 of file ISecurityProvider.cs.

Member Function Documentation

◆ GetHoldingsQuantity()

static decimal QuantConnect.Securities.SecurityProviderExtensions.GetHoldingsQuantity ( this ISecurityProvider  provider,
Symbol  symbol 
)
static

Extension method to return the quantity of holdings, if no holdings are present, then zero is returned.

Parameters
providerThe ISecurityProvider
symbolThe symbol we want holdings quantity for
Returns
The quantity of holdings for the specified symbol

Definition at line 42 of file ISecurityProvider.cs.

Here is the call graph for this function:

The documentation for this class was generated from the following file: