BinanceHistoryMessageAdapter

StockSharp.BinanceHistory

The message adapter for BinanceHistory.

Inherits: HistoricalMessageAdapter

Constructors

BinanceHistoryMessageAdapter
public BinanceHistoryMessageAdapter(IdGenerator transactionIdGenerator)
binanceHistoryMessageAdapter = BinanceHistoryMessageAdapter(transactionIdGenerator)

Initializes a new instance of the BinanceHistoryMessageAdapter.

transactionIdGenerator
Transaction id generator.

Properties

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

Possible time-frames.

CheckDates
public bool CheckDates { get; set; }
value = binanceHistoryMessageAdapter.CheckDates
binanceHistoryMessageAdapter.CheckDates = value

Check dates.

Methods

IsAllDownloadingSupported
public override bool IsAllDownloadingSupported(DataType dataType)
result = binanceHistoryMessageAdapter.IsAllDownloadingSupported(dataType)

Is for the specified all securities downloading enabled.

dataType
Data type info.

Returns: Check result.

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

Load settings.

storage
Settings storage.
OnLevel1SubscriptionAsync
protected override ValueTask OnLevel1SubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = binanceHistoryMessageAdapter.OnLevel1SubscriptionAsync(mdMsg, cancellationToken)

Handles subscription request for level1 data. Override to provide implementation for level1 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.

OnMarketDepthSubscriptionAsync
protected override ValueTask OnMarketDepthSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = binanceHistoryMessageAdapter.OnMarketDepthSubscriptionAsync(mdMsg, cancellationToken)

Handles subscription request for market depth data. Override to provide implementation for market depth 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.

OnTFCandlesSubscriptionAsync
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = binanceHistoryMessageAdapter.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.

OnTicksSubscriptionAsync
protected override ValueTask OnTicksSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = binanceHistoryMessageAdapter.OnTicksSubscriptionAsync(mdMsg, cancellationToken)

Handles subscription request for ticks data. Override to provide implementation for ticks 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 msg, CancellationToken token)
result = binanceHistoryMessageAdapter.ResetAsync(msg, token)
Save
public override void Save(SettingsStorage storage)
binanceHistoryMessageAdapter.Save(storage)

Save settings.

storage
Settings storage.
SecurityLookupAsync
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken token)
result = binanceHistoryMessageAdapter.SecurityLookupAsync(lookupMsg, token)