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've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"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
"Everything is working great with the API. I love it." - Comment from Calvin
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"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
"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.
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"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
"I just wanted to let u know that your data feed/service is by far the best!!! Your unfiltered tick data is excellent for reading order flow and none of your competitors delivers this quality of data!" - Comment from Peter via Email
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
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 »How to find Future Contract
Author Topic: How to find Future Contract (7 messages, Page 1 of 1)

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


Posted: May 11, 2022 09:07 AM          Msg. 1 of 7
Hi,

In my account I found such features. (see picture in attach)

I tried to call such function
 SBF,d,Henry Hub Natural gas,t,8,FEATURE<CR><LF> 


And got the response:
 FEATURE,QNPZ22,112,8,HENRY HUB NATURAL GAS PENULTIMATE DECEMBER 2022,


I understand correctly that the contract will be like this QNP ?

Then I tried to call:

 w@QNPZ22<CR><LF>


And got
 Q,QNPZ22,,Not Found,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


Also I tried to make such things with
 FEATURE,QBZM22,112,8,BRENT CRUDE OIL LAST DAY JUNE 2022,


And got the same errors.

What I'm doing wrong?

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


Posted: May 11, 2022 09:09 AM          Msg. 2 of 7
Picture



File Attached: futures.jpg (downloaded 520 times)

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


Posted: May 11, 2022 09:16 AM          Msg. 3 of 7
You added the @ symbol to your watch command. This was not in the SBF command's response. Omit it and you will get correct results:

w@QNPZ22
n,@QNPZ22
wQNPZ22
F,QNPZ22,24,,,,,,,,,,,,,,,,HENRY HUB NATURAL GAS PENULTIMATE DECEMBER 2022,,,,,,,,,,,,14,4,,60.03,8,112,,,,,,,,11/25/2022,,,NPG,,,18:00:00,17:00:00,USD,2500,FGHJKMNQUVXZ,0.0010,,,,
P,QNPZ22,,,,,0,,,,,,,,7.2630,scv,01

The n,SYMBOL response to a watch command means "symbol not recognized", which is a correct response in this case.

Note that the SBF command will always return DTN's own symbology for a symbol, which sometimes differs from the exchange's own symbology.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

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


Posted: May 11, 2022 09:30 AM          Msg. 4 of 7
Thanks,
I've tried:
 wQNPZ22
Q,QNPZ22,,Not Found,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


port 5009

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


Posted: May 11, 2022 04:05 PM          Msg. 5 of 7
That message can also mean "you don't have the necessary data subscription." QNPZ22 is a NYMEX symbol, and you'd need that data subscription to watch any symbols from it.

By the way: that you're getting a Q,QNPZ22,,Not Found,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, suggest you're not using the latest protocol 6.2. This would give you a message n,QNPZ22 instead. If you're not sending a SET PROTOCOL command when you connect, this could cause other unexpected results.

The IQFeed API has a versioned protocol, that operates separately from the version number of the IQFeed client software. By sending the command S, SET PROTOCOL, (protocol number) each time you connect to the API, you are telling the API which iteration of the protocol you wish to use. This allows you to integrate new IQFeed features into your custom app, at your own pace, or remain on a past protocol for as long as you wish.

The most recent protocol is 6.2. Protocol 6.1, 5.2, 5.1, 5.1 and 4.9 are still supported, and each has its own set of documentation found here. It is advisable to use the most recent protocol, unless you have backwards compatibility-related or other reasons for using an older one.

If you're not specifying a protocol, it will default to the oldest, 4.9.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

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


Posted: May 12, 2022 05:03 AM          Msg. 6 of 7
Ok,
In my account I found such subscription:
"Access to realtime Nasdaq Futures.
Contracts Include: Henry Hub Natural Gas, Brent Crude, Heating Oil."

I had enabled this subscription.

But now I can't find contracts at Nasdaq
 
SBF,d,Henry Hub,e,5,FEATURE
FEATURE,E,!NO_DATA!,,
FEATURE,!ENDMSG!,


Is this correct?

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


Posted: May 12, 2022 01:08 PM          Msg. 7 of 7
NFX effectively eased operations as a futures exchange on June 2, 2020: seehttps://www.nasdaq.com/solutions/nasdaq-futures-nfx

So there are no more active symbols for that exchange. It should not have been a choice in the account management portal; we are working to remove it as a choice now.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Wed April 17, 2024 11:00 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003