Click or drag to resize

HistoryEmulationConnectorRegisterHistorySource Method

Note: This API is now obsolete.

Register historical data source.

Namespace:  StockSharp.Algo.Testing
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 5.0.0.0 (5.0.0)
Syntax
C#
[ObsoleteAttribute("Uses custom adapter implementation.")]
public Subscription RegisterHistorySource(
	Security security,
	DataType dataType,
	Func<DateTimeOffset, IEnumerable<Message>> getMessages
)

Parameters

security
Type: StockSharp.BusinessEntitiesSecurity
Instrument. If passed the source will be applied for all subscriptions.
dataType
Type: StockSharp.MessagesDataType
Data type.
getMessages
Type: SystemFuncDateTimeOffset, IEnumerableMessage
Historical data source.

Return Value

Type: Subscription
Subscription.
See Also