Click or drag to resize

StrategySubscribeTrades Method

To start getting trades (tick data) by the instrument. New trades will come through the event NewTrade.

Namespace:  StockSharp.Algo.Strategies
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public Subscription SubscribeTrades(
	Security security,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null,
	Nullable<long> count = null,
	MarketDataBuildModes buildMode = MarketDataBuildModes.LoadAndBuild,
	Nullable<MarketDataTypes> buildFrom = null,
	IMessageAdapter adapter = null
)

Parameters

security
Type: StockSharp.BusinessEntitiesSecurity
The instrument by which trades getting should be started.
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.
buildMode (Optional)
Type: StockSharp.MessagesMarketDataBuildModes
Build mode.
buildFrom (Optional)
Type: SystemNullableMarketDataTypes
Which market-data type is used as a source value.
adapter (Optional)
Type: StockSharp.MessagesIMessageAdapter
Target adapter. Can be .

Return Value

Type: Subscription
Subscription.

Implements

IMarketDataProviderExSubscribeTrades(Security, NullableDateTimeOffset, NullableDateTimeOffset, NullableInt64, MarketDataBuildModes, NullableMarketDataTypes, IMessageAdapter)
See Also