AlorHistoryMessageAdapter

StockSharp.AlorHistory

The message adapter for Alor history.

Inherits: MessageAdapter

Constructors

AlorHistoryMessageAdapter
public AlorHistoryMessageAdapter(IdGenerator transactionIdGenerator)
alorHistoryMessageAdapter = AlorHistoryMessageAdapter(transactionIdGenerator)

Initializes a new instance of the AlorHistoryMessageAdapter.

transactionIdGenerator
Transaction id generator.

Properties

AllTimeFrames
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
value = AlorHistoryMessageAdapter.AllTimeFrames

Possible time-frames.

Exchanges
public string Exchanges { get; set; }
value = alorHistoryMessageAdapter.Exchanges
alorHistoryMessageAdapter.Exchanges = value

Exchanges.

Methods

ConnectAsync
protected override ValueTask ConnectAsync(ConnectMessage msg, CancellationToken cancellationToken)
result = alorHistoryMessageAdapter.ConnectAsync(msg, cancellationToken)
DisconnectAsync
protected override ValueTask DisconnectAsync(DisconnectMessage msg, CancellationToken cancellationToken)
result = alorHistoryMessageAdapter.DisconnectAsync(msg, cancellationToken)
IsAllDownloadingSupported
public override bool IsAllDownloadingSupported(DataType dataType)
result = alorHistoryMessageAdapter.IsAllDownloadingSupported(dataType)

Is for the specified all securities downloading enabled.

dataType
Data type info.

Returns: Check result.

Load
public override void Load(SettingsStorage storage)
alorHistoryMessageAdapter.Load(storage)

Loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
OnTFCandlesSubscriptionAsync
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = alorHistoryMessageAdapter.OnTFCandlesSubscriptionAsync(mdMsg, cancellationToken)

Handles subscription request for time-frame candles (TF candles) data. Override to provide implementation for TF candles subscription processing. The default implementation throws NotSupported.

mdMsg
Market data subscription message.
cancellationToken
Cancellation token to cancel the operation.

Returns: A ValueTask representing the asynchronous operation.

ResetAsync
protected override ValueTask ResetAsync(ResetMessage resetMsg, CancellationToken cancellationToken)
result = alorHistoryMessageAdapter.ResetAsync(resetMsg, cancellationToken)
Save
public override void Save(SettingsStorage storage)
alorHistoryMessageAdapter.Save(storage)

Saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
SecurityLookupAsync
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken cancellationToken)
result = alorHistoryMessageAdapter.SecurityLookupAsync(lookupMsg, cancellationToken)
ToString
public override string ToString()
result = alorHistoryMessageAdapter.ToString()

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.