Click or drag to resize

ExtensionsGetCandleArgsTArg Method

Get possible args for the specified candle type and instrument.

Namespace:  StockSharp.Messages
Assembly:  StockSharp.Messages (in StockSharp.Messages.dll) Version: (4.4.17)
public static IEnumerable<TArg> GetCandleArgs<TArg>(
	this IMessageAdapter adapter,
	Type candleType,
	SecurityId securityId = null,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null


Type: StockSharp.MessagesIMessageAdapter
Type: SystemType
The type of the message CandleMessage.
securityId (Optional)
Type: StockSharp.MessagesSecurityId
Security ID.
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.

Type Parameters

Type of Arg.

Return Value

Type: IEnumerableTArg
Possible args.

Usage Note

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