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)




"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"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
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"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 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.
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 »History Tick Data
Author Topic: History Tick Data (4 messages, Page 1 of 1)

seattle_guy
-Interested User-
Posts: 6
Joined: Dec 14, 2009


Posted: Dec 15, 2009 06:08 PM          Msg. 1 of 4
If I want to specify one of the parameters, should I just have empty strings in the command request ? For example, Intel tick data for 2 days in descending order should be "HTD,INTC,2,,,,0,,,\r\n" ? Can anyone point me to the right syntax ? Thanks!

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


Posted: Dec 15, 2009 06:17 PM          Msg. 2 of 4
You only need to specify empty strings for fields up to the last populated field (assuming all fields after that field are optional).

For example, For the the only required fields for an HTD request are the symbol and the number of days so the request:

"HTD,INTC,2\r\n"

would be acceptable.

In your request, the data direction of zero is the default so you don't even have to specify that if you don't want to but specifying it should not cause a problem but you don't need to populate the fields after it if you don't want to:

"HTD,INTC,2,,,,0\r\n"

will work as well (with "0" being the data direction);

However, if you want to specify all optional fields (even as empty strings), it should also work. Thus:

"HTD,INTC,2,,,,,,,\r\n"

should also work. If you add too many fields, IQConnect will return a syntax error.

seattle_guy
-Interested User-
Posts: 6
Joined: Dec 14, 2009


Posted: Dec 16, 2009 01:59 AM          Msg. 3 of 4
Ok. I tried this ""HTD,INTC,2,\r\n" and find only one day of data coming back. My socket receive loop is...Am I missing something ?

{
string strData = "";
string ConcatData = string.Empty;
int iEndMsg = -1;
while (iEndMsg == -1)
{
// initialize to sizeof inData to get into loop below
while (stream.DataAvailable)
{
byte[] inData = new byte[8097];
stream.Read(inData, 0, inData.Length);
strData = Encoding.ASCII.GetString(inData);
ConcatData += strData;

//Console.Write(ConcatData);
//Console.Write(strData);
}
iEndMsg = ConcatData.IndexOf("!ENDMSG!");
}

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


Posted: Dec 16, 2009 07:51 AM          Msg. 4 of 4
The number of Days for Tick and Interval/Minute data in IQFeed is calendar days starting at midnight EST. As a result, when you are requesting 2 days at 1:59AM, you will only get 1 day of data since the current day most likely won't have trading yet.

If you make the same request after market open, you will get 2 days (the current day + yesterday).
 

 

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