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 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 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
"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.
"You are either overstaffed or people just don't have problems with your feed because customer support always answers the phone quickly." - Comment from Jay via Email
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
"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
"Everything is working great with the API. I love it." - Comment from Calvin
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
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 get Open Interest value?
Author Topic: How to get Open Interest value? (2 messages, Page 1 of 1)

yvo109
-Interested User-
Posts: 1
Joined: Aug 30, 2023


Posted: Aug 30, 2023 09:38 AM          Msg. 1 of 2
Hello,

In 4.9 version I pull Open Interest value from a Summary message (P type) containing about 70 field values. Protocols 5.x+ return Summary message with only a few fields, none of them looking like Open Interest.
What is the correct way of obtaining an Open Interest value in protocol 5.x+ ?

Thank you!

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


Posted: Sep 5, 2023 02:05 PM          Msg. 2 of 2
In Protocol 4.9, The P message consists of a pre-determined list of fields, listed at https://www.iqfeed.net/dev/api/docs/docs51/Level1UpdateSummaryMessage.cfm.

In later protocols, the default set of fields varies. However, the S,SELECT UPDATE FIELDS command lets you customize what fields are in the Q message, and this will apply to the P message as well. You just need to do a S,SELECT UPDATE FIELDS command, and include "Open Interest" as one of your field names. Then, when you watch symbols, Open Interest will be part of the message.

The command S,CURRENT UPDATE FIELDNAMES will tell you your current list of field names, whether it is the default set or if you have previously customized.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Thu May 2, 2024 3:49 PM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003