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)




"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"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
"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"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
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"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
Home  Search  Register  Login  Blogs Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTN_IQFeed on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »IQFeed Developer »IQFeed Developer Support »MaxDatapoints in historical tick queries
Author Topic: MaxDatapoints in historical tick queries (3 messages, Page 1 of 1)

Denny
-Interested User-
Posts: 2
Joined: Feb 28, 2018


Posted: Feb 28, 2018 05:37 PM          Msg. 1 of 3
In testing out some of the tick queries, I get far fewer than the MaxDatapoints I specify. For a random day of Google:

HTD,GOOG,1,1
!ENDMSG!,

HTD,GOOG,1,10
!ENDMSG!,

HTD,GOOG,1,20
2018-02-28 17:30:44,1105.81,100,1874094,1105.04,1109.35,15821,0,0,E,
2018-02-28 17:30:23,1106.19,200,1873993,1105.04,1106.19,15819,0,0,E,
!ENDMSG!,

(same two results for 50 and 100)

HTD,GOOG,1,200
2018-02-28 17:30:44,1105.81,100,1874094,1105.04,1109.35,15821,0,0,E,
2018-02-28 17:30:23,1106.19,200,1873993,1105.04,1106.19,15819,0,0,E,
2018-02-28 17:06:25,1106.88,122,1873382,1106.50,1108.70,8383,0,0,E,
2018-02-28 16:54:49,1106.01,100,1873221,1106.01,1106.88,5949,0,0,E,
2018-02-28 16:41:29,1105.80,100,1872820,1104.88,1106.88,3922,0,0,E,
2018-02-28 16:41:29,1105.80,100,1872720,1104.88,1106.88,15754,0,0,E,
2018-02-28 16:36:42,1105.60,128,1870002,1104.88,1105.80,3918,0,0,E,
!ENDMSG!,


I get this same behavior when using HTT, querying from 000000 to 235959 within a prior day.

Our assumption was that a MaxDatapoints setting of 1 would be an easy way to indicate if any trades happened during that time period, but it seems to be very unreliable and often returns 0 results even when many ticks occurred during the queried time period.

Any suggestions?


Edited by Denny on Feb 28, 2018 at 05:40 PM

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


Posted: Feb 28, 2018 05:44 PM          Msg. 2 of 3
In older protocols, including the default 4.9 protocol, Other trades are filtered from the return. Send an S,SET PROTOCOL,5.2 message to the socket first and then the numbers will work.

Tim

Denny
-Interested User-
Posts: 2
Joined: Feb 28, 2018


Posted: Feb 28, 2018 06:17 PM          Msg. 3 of 3
So if I'm understanding this correctly, it selects (up to) MaxDatapoints results, and then filters. Is there a way to query a specific number of C trades?
 

 

Time: Tue September 18, 2018 9:58 PM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003