Class InteractiveBrokersMessageAdapter
Адаптер сообщений для InteractiveBrokers.
Inherited Members
Namespace: StockSharp.InteractiveBrokers
Assembly: StockSharp.InteractiveBrokers.dll
Syntax
[MessageAdapterCategory]
[DescriptionLoc("Str1770", "InteractiveBrokers")]
[CategoryLoc("America")]
[DisplayNameLoc("InteractiveBrokers")]
[MediaIcon("InteractiveBrokers_logo.png")]
[OrderCondition]
public class InteractiveBrokersMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, IAddressAdapter<EndPoint>
Constructors
InteractiveBrokersMessageAdapter(IdGenerator)
Создать InteractiveBrokersMessageAdapter.
Declaration
public InteractiveBrokersMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Генератор транзакций. |
Fields
DefaultAddress
Адрес по умолчанию.
Declaration
public static readonly EndPoint DefaultAddress
Field Value
Type | Description |
---|---|
EndPoint |
DefaultGatewayAddress
Адрес по умолчанию.
Declaration
public static readonly EndPoint DefaultGatewayAddress
Field Value
Type | Description |
---|---|
EndPoint |
Properties
Address
Address.
Declaration
public EndPoint Address { get; set; }
Property Value
Type | Description |
---|---|
EndPoint |
AllTimeFrames
Возможные тайм-фреймы.
Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TimeSpan> |
CandlesBuildFrom
Возможные опциии для построения свечей.
Declaration
public override IEnumerable<Level1Fields> CandlesBuildFrom { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Level1Fields> |
Overrides
CheckCertificateRevocation
Check certificate revocation.
Declaration
public bool CheckCertificateRevocation { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ClientId
Unique ID. Used when several clients are connected to one terminal or gateway.
Declaration
public int ClientId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ConnectedTime
Время подключения.
Declaration
public Nullable<DateTimeOffset> ConnectedTime { get; }
Property Value
Type | Description |
---|---|
Nullable<DateTimeOffset> |
ExtraAuth
Экстра подключение.
Declaration
public bool ExtraAuth { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Fields
Market data fields, which will be received with subscribed to Level1 messages.
Declaration
public IEnumerable<GenericFieldTypes> Fields { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<GenericFieldTypes> |
IsSupportCandlesUpdates
Поддерживается подписка на свечи и обновление в реальном времени.
Declaration
public override bool IsSupportCandlesUpdates { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
MarketDataType
Declaration
public InteractiveBrokersMarketDataTypes MarketDataType { get; set; }
Property Value
Type | Description |
---|---|
InteractiveBrokersMarketDataTypes |
MaxVersion
Max support version.
Declaration
public ServerVersions MaxVersion { get; set; }
Property Value
Type | Description |
---|---|
ServerVersions |
OptionalCapabilities
Дополнительные возможности.
Declaration
public string OptionalCapabilities { get; set; }
Property Value
Type | Description |
---|---|
String |
ServerLogLevel
Уровень логирования сообщений сервера. По умолчанию равен Information.
Declaration
public ServerLogLevels ServerLogLevel { get; set; }
Property Value
Type | Description |
---|---|
ServerLogLevels |
SslCertificate
SSL certificate.
Declaration
public string SslCertificate { get; set; }
Property Value
Type | Description |
---|---|
String |
SslCertificatePassword
SSL certificate password.
Declaration
public SecureString SslCertificatePassword { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
SslProtocol
SSL protocol to establish connect.
Declaration
public SslProtocols SslProtocol { get; set; }
Property Value
Type | Description |
---|---|
SslProtocols |
SupportedOrderBookDepths
Доступные варианты для MaxDepth.
Declaration
public override IEnumerable<int> SupportedOrderBookDepths { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Int32> |
Overrides
TargetHost
The name of the server that shares SSL connection.
Declaration
public string TargetHost { get; set; }
Property Value
Type | Description |
---|---|
String |
UseV100Plus
Использовать V100+ версию для подключения.
Declaration
public bool UseV100Plus { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ValidateRemoteCertificates
Validate remove certificates.
Declaration
public bool ValidateRemoteCertificates { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
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
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 |