Click or drag to resize

IPositionProviderSubscribePositions Method

Subscribe on positions changes.

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
void SubscribePositions(
	Security security = null,
	Portfolio portfolio = null,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null,
	Nullable<long> count = null,
	IMessageAdapter adapter = null
)

Parameters

security (Optional)
Type: StockSharp.BusinessEntitiesSecurity
The instrument on which the position should be found.
portfolio (Optional)
Type: StockSharp.BusinessEntitiesPortfolio
The portfolio on which the position should be found.
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.
adapter (Optional)
Type: StockSharp.MessagesIMessageAdapter
Target adapter. Can be .
See Also