ByBitHistoryMessageAdapter

StockSharp.ByBitHistory

The message adapter for ByBitHistory.

Inherits: HistoricalMessageAdapter

Constructors

ByBitHistoryMessageAdapter
public ByBitHistoryMessageAdapter(IdGenerator transactionIdGenerator)
byBitHistoryMessageAdapter = ByBitHistoryMessageAdapter(transactionIdGenerator)

Initializes a new instance of the ByBitHistoryMessageAdapter.

transactionIdGenerator
Transaction id generator.

Properties

IsSupportOrderBookIncrements
public override bool IsSupportOrderBookIncrements { get; }
value = byBitHistoryMessageAdapter.IsSupportOrderBookIncrements

Adapter translates incremental order books.

Methods

DisposeManaged
protected override void DisposeManaged()
byBitHistoryMessageAdapter.DisposeManaged()

Release resources.

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

Is for the specified all securities downloading enabled.

dataType
Data type info.

Returns: Check result.

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

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

SecurityLookupAsync
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken token)
result = byBitHistoryMessageAdapter.SecurityLookupAsync(lookupMsg, token)