Click or drag to resize

IMarketDataProviderExSubscribeMarketDepth Method

To start getting quotes (order book) by the instrument. Quotes values are available through the event MarketDepthChanged.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: (4.4.17)
Subscription SubscribeMarketDepth(
	Security security,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null,
	Nullable<long> count = null,
	MarketDataBuildModes buildMode = MarketDataBuildModes.LoadAndBuild,
	Nullable<MarketDataTypes> buildFrom = null,
	Nullable<int> maxDepth = null,
	Nullable<TimeSpan> refreshSpeed = null,
	IMessageAdapter adapter = null


Type: StockSharp.BusinessEntitiesSecurity
The instrument by which quotes 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.
maxDepth (Optional)
Type: SystemNullableInt32
Max depth of requested order book.
refreshSpeed (Optional)
Type: SystemNullableTimeSpan
Interval for data refresh.
adapter (Optional)
Type: StockSharp.MessagesIMessageAdapter
Target adapter. Can be .

Return Value

Type: Subscription
See Also