Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"Excellent datafeed !!!" - Comment from Arely
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
Viewing User Profile for: stargrazer
About Contact
Joined: Jun 13, 2005 12:02 PM
Last Post: Sep 2, 2021 12:23 AM
Last Visit: Sep 2, 2021 01:33 AM
Website: https://github.com/rburkholder/trade-frame
Location: Alberta, Canada
Occupation: Consultant
Interests: Will build customized trading algorithms based upon Interactive Brokers and DTN IQ
Avatar:
Right Here & Now
Email: ray@oneunified.net
AIM:
ICQ:
MSN IM:
Yahoo IM:
Post Statistics
stargrazer has contributed to 276 posts out of 20340 total posts (1.36%) in 5,940 days (0.05 posts per day).

20 Most recent posts:

Sure, but ...... the whole point is that this is automated trading.

However, I think what you are saying, is if I do a watch on the symbol, there is a field with the expiry in the response? I'll have to look at the API docs.

However, the problem I have is that I am building up the option chains for futures (run the CFO [Request a Future Option Chain]) command, and I do calculations for date ranges. It gets a bit hairy when trying to work with the @ES weekly options. There are a lot of symbols involved across days, weeks and months. With the weeklies being more difficult to decode..... lots of symbols to lookup.

If changing the symbol is a challenge, maybe adding the day to the description?

Since the equity options have days embedded, is there a standard where the day is embedded in the futures option name as well?

Here is a weekly @ES. An example of another lookup to get at the day.
@E2AU21P377500 E-MINI S&P 500 MONDAY WEEK 2 SEPTEMBER 2021 PUT 377500 CME CMEMINI FOPTION

Edited by stargrazer on Sep 2, 2021 at 12:24 AM
Edited by stargrazer on Sep 2, 2021 at 01:33 AM


Well here are some sample details.

Here is a regular equity option:

GLD2127H185 GLD AUG 2021 C 185.00 OPRA OPRA IEOPTION

The symbol name has the year/month/day encoded in the name. I remember this change occurred some number of years ago. The day, by being encoded in the name, makes it easy to come up with GLD, 2021/08/27, which makes it easy to submit GLD with the date to IB to obtain the contract number for trade executions.

Here is an FOPTION:

QGCZ21P1850 GOLD DECEMBER 2021 PUT 1850 COMEX COMEX_GBX FOPTION

Futures options have a definite expiry day. However, neither the symbol name nor the description includes the expiry day, which is in contrast to the IEOPTION. How does one find the expiry day? Is there a lookup somewhere?

In a similar manner, for a FUTURE:

QGCZ21 GOLD DECEMBER 2021 COMEX COMEX_GBX FUTURE Y

Futures have a definite expiry day. But that day is not provided in the description nor the symbol name. Where does one go to find the day? I can not lookup the contract number in IB without the day.

Forum Suggestions » https:// ???? Aug 29, 2021 09:30 PM (Total replies: 2)

Is it possible to have an https:// version of http://forums.iqfeed.net?

With the current version, usernames and passwords and content are sent in the clear.


Is it possible to make a format change to mktsymbols_v2.txt or maybe to create a v3 such that expiring symbols have full expiry year, month, and day embedded in the name? or maybe a consistent parsable format in the description field?

It isn't possible create a full IB futures contract request without a manually supplied day of the month into the contract request.

It would be very useful to be able to create a full automatically created contract request given the symbol name of something from the description field for futures, options, and futures options.

I've also noticed that futures options have a different naming convention that do regular equity options.

Proper expiry dates are even harder to calculate for the weeklies for ES/@ES, and similar CME symbols.

IQFeed Developer Support » Framing update messages by 5 min candles Aug 24, 2021 09:23 PM (Total replies: 7)

You can do pretty much anything you want.

You probably want to study market data to see how others select bar start/intervals.

Here is one example of bar building:

https://github.com/rburkholder/trade-frame/blob/master/lib/TFTimeSeries/BarFactory.h
https://github.com/rburkholder/trade-frame/blob/master/lib/TFTimeSeries/BarFactory.cpp

IQFeed Developer Support » Framing update messages by 5 min candles Aug 23, 2021 06:26 PM (Total replies: 7)

Neither?

You need to identify when your candle ends. All trades prior to and including that time are included in the candle. When the next update comes in greater than the end time, emit the candle (with the pre-calculated timestamp) and start the next. Note that sometimes a candle is not emitted if there were no trades within that timeframe.

IQFeed Developer Support » 4/12/21 Data Outage Status Updates Apr 13, 2021 09:13 AM (Total replies: 31)

Well, ..... the logical location for real time notifications would be the DTN Client it self. It is already used for popping up version notifications.

Wny not present system notifications as well?


Quote: It forces users who need this data to stream subscriptions and capture them in real time locally. That's an unreliable solution over the internet and something users should not be wasting their time building.


I would say that many have done so, including me.

Quote: IQ Feed could snapshot the BBO once per second


You'll find that when you use that mechanism for liquid instruments, the quality of data becomes lacking due to the high frequency aspects of the data.

FWIW, I believe DTN's choice of quote at trade storage is a reasonable trade-off.

Collecting data real-time during the day allows you to catch the stream as it happens with all its brutality and uneveness. Which is required for proving any sort of trading system 'in the natural'.

https://github.com/rburkholder/trade-frame
Edited by stargrazer on Apr 7, 2021 at 11:52 PM


The guts of what I use for IV then the greeks:

https://github.com/rburkholder/trade-frame/blob/master/lib/TFOptions/Binomial.cpp

Calc for risk free interest using IQ symbols

https://github.com/rburkholder/trade-frame/blob/master/lib/TFOptions/NoRiskInterestRateSeries.cpp

What I have as a compute engine as quotes come in:

https://github.com/rburkholder/trade-frame/blob/master/lib/TFOptions/Engine.cpp


hi altmany:

Quote: my IQML connector for Matlab) calculate the greeks internally and report them to the user


What do you use as a source of interest rate?

----

https://github.com/rburkholder/trade-frame/tree/master/lib/TFIQFeed
Edited by stargrazer on Feb 20, 2021 at 03:25 PM

Data and Content Support » Open Interest with Historical Options Data? Jan 3, 2021 10:50 PM (Total replies: 7)

Not sure by what you mean by 'but it was too slow'. But that would typically be how you would get the bid/ask, is by 'watching' the bid/ask/trade stream.

Run the 'w' with a symbol in IQFeed to obtain the live stream. You can then extract the bid/ask/trade information from this live stream.

Data and Content Support » Open Interest with Historical Options Data? Dec 24, 2020 09:41 PM (Total replies: 7)

Bid/Ask for non trades is not available on any symbol, option or equity.

If you are back testing on that kind of high frequency data, you probably don't really need a lot of history.

I simply run collections on bid/ask/trade info live during market hours. I store that each day. There is much info.

I can then back test as needed on the details collected.

On the other hand, I'll typically build models, then run them real time on paper trading. It provides a true real-time high-frequency experience. Or as close to true, as paper-trading can supply (some slipped and unmet orders).


Or maybe install the packages supplied by your distribution.

Then when you run "wine ..... ", it should use your home directory, and all your user privileges should work on your own files.

Otherwise, run chown 'user.user' <using your user> to fix up ownership.

IQFeed Developer Support » API on Linux Apr 11, 2020 09:23 PM (Total replies: 10)

I find that if I start news or the quote tool, the app initiates the login sequence, and serves to keep the service pinned up.

Typically the first time doesn't work. On the second try it works. Then I can connect my tools. The session seems to be reliable for me at that point.

DTN has been promising an API for many years.

At the very least, it would be nice if they could simulate a WINE session themselves, and maybe see what this issue is and at least resolve it, so that at minimum, WINE does work reliably.

And as a note, this is using x64 version of Wine with the x86 32 bit extensions.


There is some other recent activity on how to start up the agent. In addition, there needs to be a client running and connected to the agent to keep it running. I usually just startup the snapquote and select any old symbol to monitor.

DTN.IQ Client Software Support » IQ Feed client on Mac does not work Jun 25, 2019 05:21 PM (Total replies: 9)

On my machine:

 
user@here:~$ wine .wine/drive_c/Program\ Files/DTN/IQFeed/iqconnect.exe -product x1 -version x2 -login x3 -password x4 -autoconnect


Substitute your own info for x1, x2, x3, x4

Data and Content Support » Incorrect NEM Option strike prices? Jun 10, 2019 12:02 PM (Total replies: 1)

A subset of what I see in today's mktsymbols_v2 file

I don't think .12 is a valid price point?


NEM1921F35 NEM JUN 2019 C 35.00 OPRA OPRA IEOPTION
NEM1921F35.12 NEM JUN 2019 C 35.12 OPRA OPRA IEOPTION
NEM1921F35.5 NEM JUN 2019 C 35.50 OPRA OPRA IEOPTION
NEM1921F36 NEM JUN 2019 C 36.00 OPRA OPRA IEOPTION
NEM1921F36.12 NEM JUN 2019 C 36.12 OPRA OPRA IEOPTION
NEM1921F36.5 NEM JUN 2019 C 36.50 OPRA OPRA IEOPTION
NEM1921F37 NEM JUN 2019 C 37.00 OPRA OPRA IEOPTION
NEM1921F37.12 NEM JUN 2019 C 37.12 OPRA OPRA IEOPTION
NEM1921F37.5 NEM JUN 2019 C 37.50 OPRA OPRA IEOPTION
NEM1921F38.12 NEM JUN 2019 C 38.12 OPRA OPRA IEOPTION
NEM1921F39.12 NEM JUN 2019 C 39.12 OPRA OPRA IEOPTION
NEM1921F40.12 NEM JUN 2019 C 40.12 OPRA OPRA IEOPTION
NEM1921F41.12 NEM JUN 2019 C 41.12 OPRA OPRA IEOPTION
NEM1921F42.12 NEM JUN 2019 C 42.12 OPRA OPRA IEOPTION
NEM1921F43.12 NEM JUN 2019 C 43.12 OPRA OPRA IEOPTION
NEM1921F44.12 NEM JUN 2019 C 44.12 OPRA OPRA IEOPTION
NEM1921F45.12 NEM JUN 2019 C 45.12 OPRA OPRA IEOPTION
NEM1921F46.12 NEM JUN 2019 C 46.12 OPRA OPRA IEOPTION
NEM1921F47.12 NEM JUN 2019 C 47.12 OPRA OPRA IEOPTION
NEM1921F48.12 NEM JUN 2019 C 48.12 OPRA OPRA IEOPTION
NEM1921F49.12 NEM JUN 2019 C 49.12 OPRA OPRA IEOPTION
NEM1921R19.12 NEM JUN 2019 P 19.12 OPRA OPRA IEOPTION
NEM1921R20.12 NEM JUN 2019 P 20.12 OPRA OPRA IEOPTION
NEM1921R21.12 NEM JUN 2019 P 21.12 OPRA OPRA IEOPTION
NEM1921R22.12 NEM JUN 2019 P 22.12 OPRA OPRA IEOPTION
NEM1921R23 NEM JUN 2019 P 23.00 OPRA OPRA IEOPTION
NEM1921R23.12 NEM JUN 2019 P 23.12 OPRA OPRA IEOPTION
NEM1921R23.5 NEM JUN 2019 P 23.50 OPRA OPRA IEOPTION
NEM1921R24 NEM JUN 2019 P 24.00 OPRA OPRA IEOPTION


IQFeed Developer Support » Developer wanted to build API Apr 4, 2019 09:44 AM (Total replies: 5)

I have an app which download and parses the mktsymbols_v2.txt file:

https://github.com/rburkholder/trade-frame/tree/master/IQFeedMarketSymbols

I've found some SIC and NAICS code files which I use to find certain groupings:

https://github.com/rburkholder/trade-frame/tree/master/x64

I have a set of tools I use for querying various IQFeed based streams: news, history, live quotes (fundamental data found in the live quote streams)

https://github.com/rburkholder/trade-frame/tree/master/lib/TFIQFeed

There is some one else's tool which provides easy db access to mysql:

https://www.webtoolkit.eu/wt/doc/tutorial/dbo.html

This is all C++. Someone else in the forums has some C# libraries. I don't know what else is out there.

Do you need specific development environment, or do you just need an application rather than an API?

IQFeed Developer Support » Developer wanted to build API Apr 4, 2019 09:24 AM (Total replies: 5)

What are you looking to do?


I think 6.0.0.5 has some buffering/incomplete-record issues when running multiple symbols. Try the latest which is 6.0.1.1, I believe.

Try building your VM with Stretch.

Although describing a container build, the same wine configuration can be used in a regular VM (you may need to copy and paste the link rather than clicking on it):

http://blog.raymond.burkholder.net/index.php?/archives/950-Gui-using-Wine,-X2Go,-LXDE-in-a-simple-LXC-container.html

There might be an issue with the news service. If so, see the following for a fix:

http://blog.raymond.burkholder.net/index.php?/archives/747-DTNIQFeed-Gecko-Problem-in-Wine-from-WineHQ.html

To get IQConnect 'locked in', I run the SnapQuote application twice. The first time starts IQConnect, and the second time actually makes a connection after choosing a symbol. I then close the first SnapQuote application.


Time: Thu September 16, 2021 6:35 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003