Click or drag to resize

TraderHelperLookupOrders Method (ISubscriptionProvider, Order, IMessageAdapter, MessageOfflineModes)

Note: This API is now obsolete.

To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 5.0.0.0 (5.0.0)
Syntax
C#
[ObsoleteAttribute("Use ISubscriptionProvider.Subscribe method.")]
public static Subscription LookupOrders(
	this ISubscriptionProvider provider,
	Order criteria,
	IMessageAdapter adapter = null,
	MessageOfflineModes offlineMode = MessageOfflineModes.None
)

Parameters

provider
Type: StockSharp.AlgoISubscriptionProvider
Subscription provider.
criteria
Type: StockSharp.BusinessEntitiesOrder
The order which fields will be used as a filter.
adapter (Optional)
Type: StockSharp.MessagesIMessageAdapter
Target adapter. Can be .
offlineMode (Optional)
Type: StockSharp.MessagesMessageOfflineModes
Offline mode handling message.

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