Click or drag to resize

TraderHelperSubscribePositions Method (ISubscriptionProvider, PortfolioLookupMessage)

To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 5.0.0.0 (5.0.0)
Syntax
C#
public static Subscription SubscribePositions(
	this ISubscriptionProvider provider,
	PortfolioLookupMessage criteria
)

Parameters

provider
Type: StockSharp.AlgoISubscriptionProvider
Subscription provider.
criteria
Type: StockSharp.MessagesPortfolioLookupMessage
The criterion which fields will be used as a filter.

Return Value

Type: Subscription
Subscription.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISubscriptionProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also