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
|
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
|