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 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
"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
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"DTN feed was the only feed that consistently matched Bloomberg feed for BID/ASK data verification work these past years......DTN feed is a must for my supply & demand based trading using Cumulative Delta" - Comment from Public Forum Post
"Excellent datafeed !!!" - Comment from Arely
"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
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
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 »Archive (2017 and earlier) »IQFeed Developer Support »SELECT UPDATE FIELDS
Author Topic: SELECT UPDATE FIELDS (8 messages, Page 1 of 1)

ericm
-DTN Evangelist-
Posts: 145
Joined: Mar 31, 2008


Posted: Nov 21, 2014 09:49 AM          Msg. 1 of 8
I'm reworking my software on a computer different from the one on which I normally run IQFeed. Both computers are running 5.1.1.3. The code for setting up IQFeed is the same in both my old software and the new software (if they are different, it is inadvertent and I am not aware of it).

In the new software, after specifying v. 5, I receive from IQFeed:
"S,CURRENT PROTOCOL,5.0,"

Then I issue the command:
"S,SELECT UPDATE FIELDS,Symbol,Last,Change,Total Volume,High,Low,Bid,Ask,Bid Size,Ask Size,Open Interest,Open,Close,Delay,Market Open,TickID,Last Size,Last TimeMS,Message Contents,Last Date\r\n"

The response (no errors have been reported) is:
"S,CURRENT UPDATE FIELDNAMES,Symbol,Most Recent Trade,Most Recent Trade Size,Most Recent Trade TimeMS,Most Recent Trade Market Center,Total Volume,Bid,Bid Size,Ask,Ask Size,Open,High,Low,Close,Message Contents,Most Recent Trade Conditions"

This is different from what I requested, from what the old software requests, and even from anything I have ever requested. I am struggling a bit to figure out what I have done to end up here. All the fields seem to be valid in 5.0. And when I start up my old software on the other computer and request a different set of fields, it works just fine.

Eric

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Nov 21, 2014 10:12 AM          Msg. 2 of 8
Hello Eric,

The 4.9 and 5.x protocols have significant differences, this being one of them.
'If you look at this page it will tell you what fields are no longer relevant and what they have been replaced with in newer versions.

http://www.iqfeed.net/dev/api/docs/Level1UpdateSummaryMessage.cfm

Also, you will probably want to look at dynamic fieldsets as some changes there may be required to get the full list of fields you need to support your application.

http://www.iqfeed.net/dev/api/docs/DynamicFieldsets.cfm

A more general information link that discusses our protocol system.

http://www.iqfeed.net/dev/api/docs/IQFeedProtocols.cfm

I would start with these links though and if you have any questions, feel free to let us know.

Tim

ericm
-DTN Evangelist-
Posts: 145
Joined: Mar 31, 2008


Posted: Nov 21, 2014 11:02 AM          Msg. 3 of 8
Thanks for the response. Actually, I had gone over the material at the first two links several times before I started this thread. All the fields I requested are valid fields. The only thing I hadn't changed was the version (from 5.0 to 5.1), but I have done that and I still get the same results. I'm going to try uninstalling and reinstalling IQFeed next, unless you have any further suggestions.

Eric

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Nov 21, 2014 11:03 AM          Msg. 4 of 8
Are you getting back the S,CURRENT PROTOCOL return after setting the protocol? You should get back that and a list of current fields.

Tim

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Nov 21, 2014 11:08 AM          Msg. 5 of 8
Oh, I see now, you get two messages back on a protocol set, not one like on most things. That is the issue.

Tim

ericm
-DTN Evangelist-
Posts: 145
Joined: Mar 31, 2008


Posted: Nov 21, 2014 11:11 AM          Msg. 6 of 8
I reinstalled 5.1.1.3 Client (first) and 5.1.0.5 Developer (afterward). During the 5.1.0.5 download I got a message that the Client was the wrong version for the Developer. Can this have anything to do with the problem I'm having?

Eric

ericm
-DTN Evangelist-
Posts: 145
Joined: Mar 31, 2008


Posted: Nov 21, 2014 11:25 AM          Msg. 7 of 8
Tim,

Sorry, I was composing my last post when your responses came in, and I didn't see them.

I think part of the problem was that I sent the field request after receiving the version response without realizing that there was a default field response coming after the version response.

I do get a correct field response after the first, default one now, but I wasn't previously (I discovered the problem when I got an exception trying to access a field that wasn't there). I have moved my field request to a point after I get the default field response, and everything seems OK now.

Thanks for your help.

Eric

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Nov 21, 2014 11:30 AM          Msg. 8 of 8
Ok, glad we got it. Let me know if anything else comes up.

Tim
 

 

Time: Sat May 18, 2024 6:36 PM CFBB v1.2.0 13 ms.
© AderSoftware 2002-2003