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 just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"Excellent datafeed !!!" - Comment from Arely
"Everything is working great with the API. I love it." - Comment from Calvin
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"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
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
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 »NEW IQFEED FORUMS »IQFeed API Questions »Future previous contracts
Author Topic: Future previous contracts (3 messages, Page 1 of 1)

xvz
-Interested User-
Posts: 13
Joined: Mar 28, 2022


Posted: Apr 6, 2022 02:06 PM          Msg. 1 of 3
Hi,

I found method here http://www.iqfeed.net/dev/api/docs/OptionChainsviaTCPIP.cfm called CFU

I tried to run such code:
 CFU,@NQ,HMUZ,67890123,,CHAIN<CR><LF>


And I've got
CHAIN,@NQM22,@NQU22,@NQZ22,@NQH23,@NQM23,
CHAIN,!ENDMSG!,


My question is:
How can I get previous contracts from API ?

Or maybe there is a method where I can found available Months of the Symbol in API ?

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Apr 7, 2022 08:53 AM          Msg. 2 of 3
The Option Chains command will return only current options, not past ones. There is no API method that will return past option symbols, but we publish a text lists of past/expired option symbols in:

www.iqfeed.net/downloads/beta/IEOPTION.zip

This list includes only past option symbols that traded at least once. Standard API commands will work on past option symbols. There is also a file www.iqfeed.net/downloads/beta/EQUITY.zip which contains past equity symbols.

Also, the Level 1 Fundamental Message contains a field called Contract Months, fifth from the end (in protocol 6.2):

F,@NQ#,22,,,16700.00,12750.00,,,,,,,,,,,,E-MINI NASDAQ 100 JUNE 2022,,,,,,,,,,,,12,2,,29.52,8,43,11/22/2021,03/26/2021,,,,,,06/17/2022,,,NQ,,,18:00:00,17:00:00,USD,20,--H--M--U--Z,0.25,,,,

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

xvz
-Interested User-
Posts: 13
Joined: Mar 28, 2022


Posted: Apr 7, 2022 01:13 PM          Msg. 3 of 3
Thanks alot!!
 

 

Time: Fri April 26, 2024 1:45 PM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003