Class BinanceMessageAdapter
Адаптер сообщений для StockSharp.Binance.
Inherited Members
Namespace: StockSharp.Binance
Assembly: StockSharp.Binance.dll
Syntax
[OrderCondition]
[MediaIcon("Binance_logo.svg")]
[DisplayNameLoc("Binance")]
[CategoryLoc("Cryptocurrency")]
[DescriptionLoc("Str1770", "Binance")]
[MessageAdapterCategory]
public class BinanceMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, IKeySecretAdapter, IDemoAdapter
Constructors
BinanceMessageAdapter(IdGenerator)
Создать BinanceMessageAdapter.
Declaration
public BinanceMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Генератор транзакций. |
Properties
AllTimeFrames
Возможные тайм-фреймы.
Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TimeSpan> |
FeatureName
Feature name.
Declaration
public override string FeatureName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
HostRestFuture
Declaration
public string HostRestFuture { get; set; }
Property Value
Type | Description |
---|---|
String |
HostRestFutureCoin
Declaration
public string HostRestFutureCoin { get; set; }
Property Value
Type | Description |
---|---|
String |
HostRestSpot
Declaration
public string HostRestSpot { get; set; }
Property Value
Type | Description |
---|---|
String |
HostWebSocketFuture
Declaration
public string HostWebSocketFuture { get; set; }
Property Value
Type | Description |
---|---|
String |
HostWebSocketFutureCoin
Declaration
public string HostWebSocketFutureCoin { get; set; }
Property Value
Type | Description |
---|---|
String |
HostWebSocketSpot
Declaration
public string HostWebSocketSpot { get; set; }
Property Value
Type | Description |
---|---|
String |
IsDemo
Connect to demo trading instead of real trading server.
Declaration
public bool IsDemo { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsSupportCandlesUpdates
Поддерживается подписка на свечи и обновление в реальном времени.
Declaration
public override bool IsSupportCandlesUpdates { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsSupportOrderBookIncrements
Адаптер транслирует инкрементальные стаканы.
Declaration
public override bool IsSupportOrderBookIncrements { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Key
Key.
Declaration
public SecureString Key { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
Secret
Secret.
Declaration
public SecureString Secret { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
Sections
Sections.
Declaration
public IEnumerable<BinanceSections> Sections { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<BinanceSections> |
Methods
GetHistoryStepSize(DataType, out TimeSpan)
Получить максимальный размер шага, доступный для скачивания истории.
Declaration
public override TimeSpan GetHistoryStepSize(DataType dataType, out TimeSpan iterationInterval)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Тип данных. |
TimeSpan | iterationInterval | Interval between iterations. |
Returns
Type | Description |
---|---|
TimeSpan | Step. |
Overrides
GetTimeFrames(SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Получить возможные тайм-фреймы для указанного инструмента.
Declaration
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, Nullable<DateTimeOffset> from, Nullable<DateTimeOffset> to)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
Nullable<DateTimeOffset> | from | Начальная дата, с которой необходимо получать данные. |
Nullable<DateTimeOffset> | to | Конечная дата, до которой необходимо получать данные. |
Returns
Type | Description |
---|---|
IEnumerable<TimeSpan> | Возможные тайм-фреймы. |
Overrides
IsAllDownloadingSupported(DataType)
Доступно ли для указанного dataType
загрузка всех инструментов.
Declaration
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Тип данных. |
Returns
Type | Description |
---|---|
Boolean | Результат проверки. |
Overrides
Load(SettingsStorage)
Загрузить настройки.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
OnSendInMessage(Message)
Отправить сообщение.
Declaration
protected override bool OnSendInMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | Message. |
Returns
Type | Description |
---|---|
Boolean | true если переданное сообщение было обработано успешно, иначе, false. |
Overrides
Save(SettingsStorage)
Сохранить настройки.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |