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)




"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"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
"Excellent datafeed !!!" - Comment from Arely
"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
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"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
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
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 »Historical Data Server
Author Topic: Historical Data Server (6 messages, Page 1 of 1)

brandon
-Interested User-
Posts: 19
Joined: Jan 4, 2006


Posted: Jan 4, 2006 04:40 PM          Msg. 1 of 6
When I issue a request for historical data on port 9100, it returns the data just fine, ending with the !ENDMSG! message. After the first message I am unable to retrieve anymore historical data, being told !SYNTAX ERROR! or the like. I must re-connect to the server to issue the next command.

Is there something I must put after the first request in order to retrieve more?

Thanks in advance,

Brandon

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jan 4, 2006 04:49 PM          Msg. 2 of 6
Hello Brandon, I believe the behavior you are experiencing is a bug specific to IQFeed version 4.0.0.0.

Is this the version you are currently running?

If so, updating to a newer version should resolve the issue.

brandon
-Interested User-
Posts: 19
Joined: Jan 4, 2006


Posted: Jan 4, 2006 10:10 PM          Msg. 3 of 6
Steve,

I am not using v4.0.0.0. I am using 4.1.0.0.

Any ideas?

brandon
-Interested User-
Posts: 19
Joined: Jan 4, 2006


Posted: Jan 4, 2006 10:29 PM          Msg. 4 of 6
To further clarify, here is what is happening (logged from a telnet session to the history server, port 9100):

> telnet localhost 9100
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HM,X,1,60;
2006-01-04 17:00:00,49.84,49.84,49.84,49.84,2447300,58800
2006-01-04 16:00:00,50.00,49.57,49.59,49.82,2388500,501500
2006-01-04 15:00:00,49.89,49.40,49.84,49.59,1823500,315200
2006-01-04 14:00:00,49.88,49.71,49.83,49.83,1508100,123000
2006-01-04 13:00:00,50.20,49.69,50.18,49.84,1384900,267000
2006-01-04 12:00:00,50.22,49.58,49.64,50.19,1117900,340700
2006-01-04 11:00:00,49.77,49.43,49.45,49.65,775000,474600
2006-01-04 10:00:00,49.68,49.00,49.44,49.45,297200,292900

!ENDMSG!
HM,MSFT,1,60;
!SYNTAX_ERROR!
HT,X,1;
!SYNTAX_ERROR!

... and so on ...

I have to disconnect and reconnect in order to receive a valid response to my requests.

This is IQFeed v4.1.0.0.

Thanks,

Brandon

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jan 5, 2006 09:41 AM          Msg. 5 of 6
I am unable to duplicate this problem.

Is this a copy/paste directly out of your telnet client?
are you using the standard telnet built into the windows command prompt?

my reasoning for asking is that I am noticing your data starts on the line following the command.

when I use telnet (default windows) to troubleshoot feed issues, the data always starts on the same line as the command I entered.
Quote:
HM,X,1,60;2006-01-05 11:00:00,50.34,49.79,49.82,50.24,605400,175400
2006-01-05 10:00:00,50.13,49.51,49.90,49.81,429700,408300

!ENDMSG!
HM,MSFT,1,60;2006-01-05 11:00:00,27.1300,27.0100,27.0200,27.0700,8201315,3151749
2006-01-05 10:00:00,27.1200,26.9100,26.9600,27.0201,5044802,4945875

!ENDMSG!
HM,MSFT,1,60;2006-01-05 11:00:00,27.1300,27.0100,27.0200,27.0400,9100912,4050546
2006-01-05 10:00:00,27.1200,26.9100,26.9600,27.0201,5044802,4945875

!ENDMSG!

HM,MSFT,1,60;!SYNTAX_ERROR!
HM,MSFT,1,60;2006-01-05 11:00:00,27.1300,27.0100,27.0200,27.0400,10211554,5155788
2006-01-05 10:00:00,27.1200,26.9100,26.9600,27.0201,5044802,4945875

!ENDMSG!


if your telnet client is sending an extra line feed after each ; then you will be getting syntax errors because each command you are sending after the first one will start with that line feed character.

In the last example above, I manually did this in order to recieve a syntax error but as you can see the feed recovered fine for me after the error and I was able to send another command immediatly.

Are you able to use the Example apps for history requests without error?
Edited by DTN_Steve_S on Jan 5, 2006 at 09:46 AM

brandon
-Interested User-
Posts: 19
Joined: Jan 4, 2006


Posted: Jan 5, 2006 06:39 PM          Msg. 6 of 6
Steve,

Thanks for the clarification. I did not realize that I need not send the \r\n after each command. I have now corrected my program.

Brandon
 

 

Time: Sun May 19, 2024 2:51 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003