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)

"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"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.
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"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'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
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
»Forums Index »Product Support »Data and Content Support »How to tell which futures contract the continuous contract is based on?
Author Topic: How to tell which futures contract the continuous contract is based on? (5 messages, Page 1 of 1)

-Interested User-
Posts: 21
Joined: Feb 23, 2015

Posted: Jul 14, 2019 09:06 PM          Msg. 1 of 5
When pulling historical or realtime data, how do you know what contact you're really looking at?

DTN Todd
-Interested User-
Posts: 38
Joined: Mar 24, 2010

Posted: Jul 14, 2019 09:28 PM          Msg. 2 of 5
Snapquote in IQfeed applications will indicate what symbol iqfeed is using as the current symbol for a continuous contact. You would need to enter the continuous symbol is snapquote

-Interested User-
Posts: 21
Joined: Feb 23, 2015

Posted: Jul 14, 2019 09:37 PM          Msg. 3 of 5
Thanks. Is there a programmatic way using the API?

-DTN Evangelist-
Posts: 205
Joined: Aug 22, 2014

Posted: Jul 15, 2019 07:13 AM          Msg. 4 of 5
When pulling history there is no way to tell the underlying contract.

When pulling streaming data the correct month is listed in the contract description, however there is no direct indication of the underlying contract.

Stephen Shockey
Customer Support Representative


9110 W Dodge Rd
Omaha NE 68114, USA

-Interested User-
Posts: 39
Joined: Jul 30, 2018

IQML - IQFeed-MATLAB connector

Posted: Jul 15, 2019 11:13 AM          Msg. 5 of 5
You can use the Exchange_Root field together with the Expiration_Date field (to get the year and month), convert the month into the corresponding letter based on the standard symbology, and concatenate everything together.

For example, @ES# currently reports Exchange_Root='ES' and Expiration_Date='09/20/2019', so the current underlying contract is @ESU19 (U=September). If you compare the data fields of the fundamental report (after placing a simple watch) for @ES# and @ESU19, you'll see that they are identical except for 4 fields that naturally contain different values: Symbol, Historical_Volatility, 52_Week_High, and 52_Week_High_Date.

Yair Altman
IQML - IQFeed-MATLAB connector

I am not a DTN employee; my post reflects my personal opinion


Time: Tue December 10, 2019 8:36 AM CFBB v1.2.0 31 ms.
© AderSoftware 2002-2003