GateIOHistoryMessageAdapter
The message adapter for GateIOHistory.
Inherits: HistoricalMessageAdapter
Constructors
public GateIOHistoryMessageAdapter(IdGenerator transactionIdGenerator)
gateIOHistoryMessageAdapter = GateIOHistoryMessageAdapter(transactionIdGenerator)
Initializes a new instance of the GateIOHistoryMessageAdapter.
- transactionIdGenerator
- Transaction id generator.
Properties
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
value = GateIOHistoryMessageAdapter.AllTimeFrames
Possible time-frames.
public bool CheckDates { get; set; }
value = gateIOHistoryMessageAdapter.CheckDates
gateIOHistoryMessageAdapter.CheckDates = value
Check dates.
public override bool IsSupportOrderBookIncrements { get; }
value = gateIOHistoryMessageAdapter.IsSupportOrderBookIncrements
Adapter translates incremental order books.
Methods
protected override void DisposeManaged()
gateIOHistoryMessageAdapter.DisposeManaged()
Disposes the managed resources. Override this method to add custom clean up of managed resources.
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.
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.
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.
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.
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.
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.
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken token)
result = gateIOHistoryMessageAdapter.SecurityLookupAsync(lookupMsg, token)