Class BinanceHistoryMessageAdapter
- Namespace
- StockSharp.BinanceHistory
- Assembly
- StockSharp.BinanceHistory.dll
The message adapter for StockSharp.BinanceHistory.
[MediaIcon("Binance_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "BinanceHistory", Description = "CryptoConnector", GroupName = "Cryptocurrency")]
[MessageAdapterCategory(MessageAdapterCategories.Crypto|MessageAdapterCategories.History|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.MarketDepth|MessageAdapterCategories.Level1|MessageAdapterCategories.OrderLog)]
public class BinanceHistoryMessageAdapter : HistoricalAsyncMessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
- Inheritance
-
BinanceHistoryMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
BinanceHistoryMessageAdapter(IdGenerator)
Initializes a new instance of the BinanceHistoryMessageAdapter.
public BinanceHistoryMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AllTimeFrames
Possible time-frames.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
CheckDates
Check dates.
[Display(ResourceType = typeof(LocalizedStrings), Name = "CheckDates", Description = "CheckDatesDesc", GroupName = "Connection", Order = 0)]
public bool CheckDates { get; set; }
Property Value
TimeFrames
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> TimeFrames { get; }
Property Value
Methods
IsAllDownloadingSupported(DataType)
Is for the specified dataType
all securities downloading enabled.
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- bool
Check result.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnTFCandlesSubscriptionAsync(MarketDataMessage, CancellationToken)
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
Parameters
mdMsg
MarketDataMessagecancellationToken
CancellationToken
Returns
OnTicksSubscriptionAsync(MarketDataMessage, CancellationToken)
protected override ValueTask OnTicksSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
Parameters
mdMsg
MarketDataMessagecancellationToken
CancellationToken
Returns
ResetAsync(ResetMessage, CancellationToken)
Process ResetMessage.
public override ValueTask ResetAsync(ResetMessage msg, CancellationToken token)
Parameters
msg
ResetMessagetoken
CancellationToken
Returns
Remarks
Must NOT throw.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SecurityLookupAsync(SecurityLookupMessage, CancellationToken)
Process SecurityLookupMessage.
public override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken token)
Parameters
lookupMsg
SecurityLookupMessagetoken
CancellationToken