Click or drag to resize

TraderHelperSubscribeOrders Method (ISubscriptionProvider, Security, NullableDateTimeOffset, NullableDateTimeOffset, NullableInt64, IEnumerableOrderStates, IMessageAdapter, NullableInt64)

Subscribe on orders changes.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 5.0.0.0 (5.0.0)
Syntax
C#
public static Subscription SubscribeOrders(
	this ISubscriptionProvider provider,
	Security security = null,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null,
	Nullable<long> count = null,
	IEnumerable<OrderStates> states = null,
	IMessageAdapter adapter = null,
	Nullable<long> skip = null
)

Parameters

provider
Type: StockSharp.AlgoISubscriptionProvider
Subscription provider.
security (Optional)
Type: StockSharp.BusinessEntitiesSecurity
Security for subscription.
from (Optional)
Type: SystemNullableDateTimeOffset
The initial date from which you need to get data.
to (Optional)
Type: SystemNullableDateTimeOffset
The final date by which you need to get data.
count (Optional)
Type: SystemNullableInt64
Max count.
states (Optional)
Type: System.Collections.GenericIEnumerableOrderStates
Filter order by the specified states.
adapter (Optional)
Type: StockSharp.MessagesIMessageAdapter
Target adapter. Can be .
skip (Optional)
Type: SystemNullableInt64
Skip count.

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