GateIOHistoryMessageAdapter

StockSharp.GateIOHistory

The message adapter for GateIOHistory.

Inherits: HistoricalMessageAdapter

Constructors

GateIOHistoryMessageAdapter
public GateIOHistoryMessageAdapter(IdGenerator transactionIdGenerator)
gateIOHistoryMessageAdapter = GateIOHistoryMessageAdapter(transactionIdGenerator)

Initializes a new instance of the GateIOHistoryMessageAdapter.

transactionIdGenerator
Transaction id generator.

Properties

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

Possible time-frames.

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

Check dates.

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

Adapter translates incremental order books.

Methods

DisposeManaged
protected override void DisposeManaged()
gateIOHistoryMessageAdapter.DisposeManaged()

Disposes the managed resources. Override this method to add custom clean up of managed resources.

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

Is for the specified all securities downloading enabled.

dataType
Data type info.

Returns: Check result.

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

Loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
OnMarketDepthSubscriptionAsync
protected override ValueTask OnMarketDepthSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = gateIOHistoryMessageAdapter.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 = gateIOHistoryMessageAdapter.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 = gateIOHistoryMessageAdapter.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.

Save
public override void Save(SettingsStorage storage)
gateIOHistoryMessageAdapter.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 token)
result = gateIOHistoryMessageAdapter.SecurityLookupAsync(lookupMsg, token)