IQFeedMessageAdapter
The messages adapter for IQFeed.
Inherits: MessageAdapter
Implements: ILoginPasswordAdapter
Constructors
public IQFeedMessageAdapter(IdGenerator transactionIdGenerator)
iQFeedMessageAdapter = IQFeedMessageAdapter(transactionIdGenerator)
Initializes a new instance of the IQFeedMessageAdapter.
- transactionIdGenerator
- Transaction id generator.
Properties
public EndPoint AdminAddress { get; set; }
value = iQFeedMessageAdapter.AdminAddress
iQFeedMessageAdapter.AdminAddress = value
Address for obtaining service data.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
value = IQFeedMessageAdapter.AllTimeFrames
Possible time-frames.
public EndPoint DerivativeAddress { get; set; }
value = iQFeedMessageAdapter.DerivativeAddress
iQFeedMessageAdapter.DerivativeAddress = value
Address for obtaining derivative data.
public override bool ExtraSetup { get; }
value = iQFeedMessageAdapter.ExtraSetup
The adapter requires extra setup.
public override string FeatureName { get; }
value = iQFeedMessageAdapter.FeatureName
Feature name.
public bool IsDownloadSecurityFromSite { get; set; }
value = iQFeedMessageAdapter.IsDownloadSecurityFromSite
iQFeedMessageAdapter.IsDownloadSecurityFromSite = value
Whether to load instruments from the archive of the IQFeed site. The default is off.
public override bool IsSupportOrderBookIncrements { get; }
value = iQFeedMessageAdapter.IsSupportOrderBookIncrements
Adapter translates incremental order books.
public EndPoint Level1Address { get; set; }
value = iQFeedMessageAdapter.Level1Address
iQFeedMessageAdapter.Level1Address = value
Address for obtaining data on Level1.
public IQFeedLevel1ColumnRegistry Level1ColumnRegistry { get; }
value = iQFeedMessageAdapter.Level1ColumnRegistry
The list of all available IQFeedLevel1Column.
public IEnumerable<IQFeedLevel1Column> Level1Columns { get; set; }
value = iQFeedMessageAdapter.Level1Columns
iQFeedMessageAdapter.Level1Columns = value
All IQFeedLevel1Column to be transmit.
public EndPoint Level2Address { get; set; }
value = iQFeedMessageAdapter.Level2Address
iQFeedMessageAdapter.Level2Address = value
Address for obtaining data on Level2.
public string Login { get; set; }
value = iQFeedMessageAdapter.Login
iQFeedMessageAdapter.Login = value
Login.
public EndPoint LookupAddress { get; set; }
value = iQFeedMessageAdapter.LookupAddress
iQFeedMessageAdapter.LookupAddress = value
Address for obtaining history data.
public bool Offline { get; set; }
value = iQFeedMessageAdapter.Offline
iQFeedMessageAdapter.Offline = value
public SecureString Password { get; set; }
value = iQFeedMessageAdapter.Password
iQFeedMessageAdapter.Password = value
Password.
public string ProductId { get; set; }
value = iQFeedMessageAdapter.ProductId
iQFeedMessageAdapter.ProductId = value
Product id.
public string SecuritiesFile { get; set; }
value = iQFeedMessageAdapter.SecuritiesFile
iQFeedMessageAdapter.SecuritiesFile = value
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.
public Version Version { get; set; }
value = iQFeedMessageAdapter.Version
iQFeedMessageAdapter.Version = value
Protocol version.
Methods
protected override ValueTask ConnectAsync(ConnectMessage connectMsg, CancellationToken token)
result = iQFeedMessageAdapter.ConnectAsync(connectMsg, token)
public override IOrderLogMarketDepthBuilder CreateOrderLogMarketDepthBuilder(SecurityId securityId)
result = iQFeedMessageAdapter.CreateOrderLogMarketDepthBuilder(securityId)
Create market depth builder.
- securityId
- Security ID.
Returns: Order log to market depth builder.
protected override ValueTask DisconnectAsync(DisconnectMessage disconnectMsg, CancellationToken cancellationToken)
result = iQFeedMessageAdapter.DisconnectAsync(disconnectMsg, cancellationToken)
public override bool IsAllDownloadingSupported(DataType dataType)
result = iQFeedMessageAdapter.IsAllDownloadingSupported(dataType)
Is for the specified all securities downloading enabled.
- dataType
- Data type info.
Returns: Check result.
public override bool IsSupportCandlesUpdates(MarketDataMessage subscription)
result = iQFeedMessageAdapter.IsSupportCandlesUpdates(subscription)
Support candles subscription and live updates.
- subscription
- MarketDataMessage
Returns: Check result.
public override void Load(SettingsStorage storage)
iQFeedMessageAdapter.Load(storage)
Load settings.
- storage
- Settings storage.
protected override ValueTask OnLevel1SubscriptionAsync(MarketDataMessage mdMsg, CancellationToken token)
result = iQFeedMessageAdapter.OnLevel1SubscriptionAsync(mdMsg, token)
Handles subscription request for level1 data. Override to provide implementation for level1 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 OnMarketDepthSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken token)
result = iQFeedMessageAdapter.OnMarketDepthSubscriptionAsync(mdMsg, token)
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 OnNewsSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken token)
result = iQFeedMessageAdapter.OnNewsSubscriptionAsync(mdMsg, token)
Handles subscription request for news data. Override to provide implementation for news 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 OnOrderLogSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken token)
result = iQFeedMessageAdapter.OnOrderLogSubscriptionAsync(mdMsg, token)
Handles subscription request for order log (trades/transactions) data. Override to provide implementation for order log 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 token)
result = iQFeedMessageAdapter.OnTFCandlesSubscriptionAsync(mdMsg, token)
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 token)
result = iQFeedMessageAdapter.OnTicksSubscriptionAsync(mdMsg, token)
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.
protected override ValueTask ResetAsync(ResetMessage resetMsg, CancellationToken cancellationToken)
result = iQFeedMessageAdapter.ResetAsync(resetMsg, cancellationToken)
public override void Save(SettingsStorage storage)
iQFeedMessageAdapter.Save(storage)
Save settings.
- storage
- Settings storage.
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken token)
result = iQFeedMessageAdapter.SecurityLookupAsync(lookupMsg, token)
public override string ToString()
result = iQFeedMessageAdapter.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.
Fields
public static readonly Version DefaultVersion
value = IQFeedMessageAdapter.DefaultVersion
Default value for Version.