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)




"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"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
"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.
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"It’s so nice to be working with real professionals!" - Comment from Len
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"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
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 via TCP/IP - Minute History (HM) - data return order change
Author Topic: Historical Data via TCP/IP - Minute History (HM) - data return order change (11 messages, Page 1 of 1)

MM95
-Interested User-
Posts: 11
Joined: May 26, 2004


Posted: Mar 9, 2005 01:30 PM          Msg. 1 of 11
The data return order has changed.
Version 2.3.0.1 = least recent to most recent
Version 2.3.0.2 = most recent to least recent
Documentation reads:
HM responses come in a form of one period per coma separated line of text terminated with a <CR><LF>. The data is returned least recent to most recent.

Should Read - The data is returned most recent to least recent.

Is this going to be a permanent change to 2.3.

Roger

http://mm95.com

DTN_Natalie_H
-DTN Evangelist-
Posts: 175
Joined: May 10, 2004

DTN Market Access, LLC.


Posted: Mar 16, 2005 10:33 AM          Msg. 2 of 11
Yes, the data return order for all history requests will be permanently changed. From v2.3.0.2 on, data will be returned most recent to least recent.

I will update the documentation to reflect this. Thanks!

Natalie Hannan DTN Market Access, LLC.

taa_dtn
-DTN Evangelist-
Posts: 154
Joined: May 7, 2004


Posted: Apr 3, 2005 06:27 PM          Msg. 3 of 11
(Sorry for the delayed reply -- I've been out of the country and am just catching up.)

At least for my software, this is an incompatible change, and I wouldn't have expected to see it in a "minor" release.

I sure hope there are going to be release notes that highlight every change in behavior!

Allen

LonnieS
-King of IQ Development-
Posts: 127
Joined: Jun 2, 2004


Posted: Apr 4, 2005 05:17 PM          Msg. 4 of 11
There will be.

Lonnie Shumate
Development Manager, IQ Systems
DTN Market ACCESS

lrmiller9
-Interested User-
Posts: 11
Joined: May 13, 2005


Posted: May 13, 2005 03:48 PM          Msg. 5 of 11
I just subscribed to IQfeed and I am writing code to use the TCP/IP interface with Visual C++ to get Minute History data for US stocks.

From the postings on the forums, it looks like there are a lot of occurrances of bad data and long delays, interleaved data from multiple requests, missing !ENDMSG! codes, and disconnects that cannot be automatically reconnected (the system crashes or hangs when trying to reconnect).

A lot of these problems sound very difficult or impossible to work around particularly because the API does not seem to use the usual flags that you would expect in an asynchronous client server system running over the internet, like the data not being tagged with the request even though data from multiple requests may be interleaved.

This sounds awful and scary to me. Would it really be possible to run for 24 hours (or 16 hours) getting Minute History without getting into a lot of these problems. I would really like my program to be able to stay connected overnight and run for more than one day.

If not, does anyone know of another service that is more useable for getting minute hisroties on US stocks?

Thanks,
Larry Miller
miller@scientificinvestor.com

L Miller

DTN_Jay_Froscheiser
-VP, Product Operations-
Posts: 1746
Joined: May 3, 2004

DTN IQFeed/DTN.IQ/DTN NxCore


Posted: May 14, 2005 03:32 PM          Msg. 6 of 11
Larry,

We have hundreds of developers using IQ and thousands of users. Many run their apps for the entire week without intervention. However, your question is if you can run for 24 hours getting minute history. The answer is no. This is now what IQFeed is intended for. You would need to watch the streaming data and build your historical data on that. You can backfill minute data, but the minute data is not meant to be constantly polled to keep your minute database in tact. I am sure others will be able to attest to their running IQ for more than 24 hours at a time.

Jay Froscheiser
DTN - Trading Markets

lrmiller9
-Interested User-
Posts: 11
Joined: May 13, 2005


Posted: May 14, 2005 06:32 PM          Msg. 7 of 11
Jay,

Thanks for your reply. Lt me see if I can clarify exactly the best approach to use.

I need to get the current price of about 50 stocks every 10 minutes between 11:00 AM and 11:59 AM. I also need to do this for a different set of stocks between 3:00 PM and 4:00 PM.

Also, once every 15 minutes between 10:00 and 11:00 AM market time, I need to get the current price of about 500 stocks. The set of 500 stocks that I am interested in will change each 15 minutes. Thus 2000 different stocks wil be checked during the one-hour period.

I also need to do this 500 stock check at 15 minute intervals between 2:00 PM and 3:00 PM market time.

If I do all of the above using the streaming data, then I will be ignoring the great majority of the streaming data.

Is there some way to slow down the rate of delivery of the streaming data? or specify that I only want it once?

I can certainly just ignore it but it seems wasteful of bandwidth. Also, I would worry that the data might overflow somewhere in the pipeline. I can certainly do socket receives continually and efficiently dump the data at the receive end, but I don't have control of intermediate steps such as the flow control between IQConnect and the server.

Alternatively, is there a command that I can give to just get the current price of a stock? or a set of stocks? Would it be more efficient to issue this command for each of the 2000 stocks that I need data for between 10:00 and 11:00 AM? (and do a similar thing between 2 and 3 PM).

I know that I can issue a lot of w<ticker> and r<ticker> commands to the streaming feed system to do what I need to do but as I said, it seems wasteful of internet bandwidth.
In fact I could issue w<ticker> for a set of tickers and as I get a data back beck for each ticker, I can send r<ticker> for that ticker. Then the next 10 or 15 minute interval interval I can do this again - send a bunch of <w<ticker> commands (up to 500 I understand) and then send r<ticker> commands aftern I get a packet for each ticker. Is this tie best way to do it?

Thanks.

Larry Miller

L Miller

lrmiller9
-Interested User-
Posts: 11
Joined: May 13, 2005


Posted: May 14, 2005 07:02 PM          Msg. 8 of 11
One more equestion:

Would the HD,MSFT,1;

command given during market hours get me the previous day's open and close or the present day's open and current price?

Larry

L Miller

lrmiller9
-Interested User-
Posts: 11
Joined: May 13, 2005


Posted: May 15, 2005 12:28 AM          Msg. 9 of 11
Split Adjustment

Are the stock prices (in particular the close prices) split adjusted in the history data?

If not, does IQfeed provide any information about when splits (or stock dividentd) occur?

Thanks,

Larry

L Miller

DTN_Jay_Froscheiser
-VP, Product Operations-
Posts: 1746
Joined: May 3, 2004

DTN IQFeed/DTN.IQ/DTN NxCore


Posted: May 15, 2005 09:41 AM          Msg. 10 of 11
Larry,

You are trying to do some thing that IQFeed really isn't designed for. IQFeed is not very efficient with hundreds of watch and unwatch requests. It is meant to have a user set a watch and capture the data. However, we do have people using our feed for purposes like you want. Because of this, we have new server code in development that will make snapshot requests more efficient. If you want 10 minute bar data, it isn't a problem to request it on a number of stocks, but we would ask that you limit your requests to after market hours and throttle the requests so as to not have adverse effects on the servers.

If you ask for 1 day of data, you will get the current day. Thus, if you are looking for yesterday as well, you will want to ask for 2 days.

Regarding splits, our daily,weekly,monthly data is split adjusted, but the intraday (tick and minute) isn't. There is a fundamental data field which will tell you the last 2 split factors and dates.

Jay Froscheiser
DTN - Trading Markets

lrmiller9
-Interested User-
Posts: 11
Joined: May 13, 2005


Posted: May 15, 2005 11:17 AM          Msg. 11 of 11
Jay,
Thank you. I will follow your guidelines. I am glad that your daily, weekly and monthly data are split adjusted.
I also will eagerly await your new server code. Being able to get snapshots efficiently will make it possible for for me to provide a capability that allows users to do custom screens for stocks that rise more than a specified percentage from the market open to the present time.
Larry Miller

L Miller
 

 

Time: Sat May 4, 2024 1:37 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003