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 product !!!!!!" - Comment from Arely
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"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.
"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
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"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
"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
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"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
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 »Downloading Historical Intraday Future Ticks
Author Topic: Downloading Historical Intraday Future Ticks (4 messages, Page 1 of 1)

madman
-Interested User-
Posts: 2
Joined: Jul 16, 2020


Posted: Jul 16, 2020 11:37 PM          Msg. 1 of 4
Hey everyone,

I'm trying to download historical intraday CME futures tick data, but I'm running into issues when downloading the ticks.

I issue a request to download 1 day of data (July 1st), like so:
"HTT,@ESU20,20200701 000000,20200702 000000,,,,1\r\n"

Then I receive streaming tick data -- the data streams for a while, but hangs after I receive about 18,000 messages (or until about 02:17:00 on July 1st in the data stream).

Some questions:
1- is my request format correct?
2- should I be issuing smaller requests? (e.g: 15 minute chunks?)
3- any other tips or best practices when doing these downloads?

Cheers,
madman

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Jul 17, 2020 10:58 AM          Msg. 2 of 4
Hello, this is Gary with IQFeed API Support.

Your request is fine. You can request as much data as you want. It sounds like the data is queueing, which happens when IQFeed cannot send data that has been requested. In other words, IQFeed is sending data faster than your code is processing it, and the receive buffer is filling up. To monitor this, open Diagnostics/Client Stats tab, and observe the "KB Queued" column for the Lookup port during a request. You'll probably find that it starts low and slowly increases as data comes in.

How do you avoid this? Generally, DTN recommends using three different threads in your app: one to retrieve the data from the API, one to convert the information into the form you want, and a third thread to act on it (draw a chart, put it in a database, whatever your app does). Also: having multiple connections to the IQFeed, and having each connection retrieve part of the desired data, can improve performance.

I hope this helps! Let me know if you have any other questions or issues getting data from the API.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

madman
-Interested User-
Posts: 2
Joined: Jul 16, 2020


Posted: Jul 19, 2020 03:10 PM          Msg. 3 of 4
Hi Gary,

Thanks for the prompt and thorough response!

Good call: I checked the KB Queued column and saw the exact behavior you described. After tweaking my application with your tips, I can know maintain a KB Queued of 0 bytes.

Regards,
Greg

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Jul 20, 2020 07:58 AM          Msg. 4 of 4
Greg,

Excellent! I'm glad I could help.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Tue April 23, 2024 10:45 AM CFBB v1.2.0 13 ms.
© AderSoftware 2002-2003