Class IQFeedMessageAdapter
Маркет-дата адаптер сообщений для IQFeed.
Inherited Members
Namespace: StockSharp.IQFeed
Assembly: StockSharp.IQFeed.dll
Syntax
[MediaIcon("IQFeed_logo.png")]
[DisplayNameLoc("IQFeed")]
[CategoryLoc("America")]
[DescriptionLoc("Str1770", "IQFeed")]
[MessageAdapterCategory]
public class IQFeedMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
Constructors
IQFeedMessageAdapter(IdGenerator)
Создать IQFeedMessageAdapter.
Declaration
public IQFeedMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Генератор транзакций. |
Fields
DefaultVersion
Значение по умолчанию для Version.
Declaration
public static readonly Version DefaultVersion
Field Value
Type | Description |
---|---|
Version |
Properties
AdminAddress
Address for obtaining service data.
Declaration
public EndPoint AdminAddress { get; set; }
Property Value
Type | Description |
---|---|
EndPoint |
AllTimeFrames
Возможные тайм-фреймы.
Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TimeSpan> |
DerivativeAddress
Address for obtaining derivative data.
Declaration
public EndPoint DerivativeAddress { get; set; }
Property Value
Type | Description |
---|---|
EndPoint |
IsDownloadSecurityFromSite
Загружать ли инструменты из архива с сайта IQFeed. По умолчанию выключено.
Declaration
public bool IsDownloadSecurityFromSite { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsSupportCandlesUpdates
Поддерживается подписка на свечи и обновление в реальном времени.
Declaration
public override bool IsSupportCandlesUpdates { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Level1Address
Address for obtaining data on Level1.
Declaration
public EndPoint Level1Address { get; set; }
Property Value
Type | Description |
---|---|
EndPoint |
Level1ColumnRegistry
Список всех доступных IQFeedLevel1Column.
Declaration
public IQFeedLevel1ColumnRegistry Level1ColumnRegistry { get; }
Property Value
Type | Description |
---|---|
IQFeedLevel1ColumnRegistry |
Level1Columns
Все IQFeedLevel1Column, которые необходимо транслировать.
Declaration
public IEnumerable<IQFeedLevel1Column> Level1Columns { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<IQFeedLevel1Column> |
Level2Address
Address for obtaining data on Level2.
Declaration
public EndPoint Level2Address { get; set; }
Property Value
Type | Description |
---|---|
EndPoint |
LookupAddress
Address for obtaining history data.
Declaration
public EndPoint LookupAddress { get; set; }
Property Value
Type | Description |
---|---|
EndPoint |
SecuritiesFile
Path to file with IQFeed list of securities, downloaded from the website. If path is specified, then secondary download from website does not occur, and only the local copy gets parsed.
Declaration
public string SecuritiesFile { get; set; }
Property Value
Type | Description |
---|---|
String |
SecurityTypesFilter
Securities types, for which data must be received.
Declaration
public IEnumerable<SecurityTypes> SecurityTypesFilter { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<SecurityTypes> |
Version
Версия протокола.
Declaration
public Version Version { get; set; }
Property Value
Type | Description |
---|---|
Version |
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 |