Click or drag to resize

MessageConverterHelperToMarketDataMessage Method

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static MarketDataMessage ToMarketDataMessage(
	this CandleSeries series,
	bool isSubscribe,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null,
	Nullable<long> count = null
)

Parameters

series
Type: StockSharp.Algo.CandlesCandleSeries
Candles series.
isSubscribe
Type: SystemBoolean
The message is market-data 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
Candles count.

Return Value

Type: MarketDataMessage
Market-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CandleSeries. 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