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: 4.4.17.0 (4.4.17)
Syntax
C#
[ObsoleteAttribute("Uses custom adapter implementation.")]
public void RegisterHistorySource(
	Security security,
	MarketDataTypes dataType,
	Object arg,
	Func<DateTimeOffset, IEnumerable<Message>> getMessages
)

Parameters

security
Type: StockSharp.BusinessEntitiesSecurity
Instrument. If passed the source will be applied for all subscriptions.
dataType
Type: StockSharp.MessagesMarketDataTypes
Data type.
arg
Type: SystemObject
The parameter associated with the dataType type. For example, Arg.
getMessages
Type: SystemFuncDateTimeOffset, IEnumerableMessage
Historical data source.
See Also