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)




"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"Everything is working great with the API. I love it." - Comment from Calvin
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"I've been using Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
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 »How to generate a "heart beat" from IQfeed?
Author Topic: How to generate a "heart beat" from IQfeed? (4 messages, Page 1 of 1)

redblue
-Interested User-
Posts: 51
Joined: Oct 29, 2009


Posted: Oct 29, 2009 05:36 PM          Msg. 1 of 4
Hi,

I would like to be able to generate a heart beat from IQfeed. The heartbeat needs to have 1 second granularity. I had assumed that I could send T<CR><LF> to the sever at sub second intervals which would then give me T messages so I could watch when a new second "happens". However, it seems that T messages are only updated every 10 seconds regardless of how many T messages are sent to the sever?

I could generate the heartbeat from L1 quotes, but I then I would need to ensure that I have enough quotes to ensure that 1 second grain? Any other approaches?

Cheers,

Jeremy.

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


Posted: Oct 30, 2009 05:03 PM          Msg. 2 of 4
Unfortunately I can't think of anyway currently to simulate a 1s heartbeat in the feed that you haven't already considered.

What is the reason you are needing this? Perhaps I can think of an alternate solution to a heartbeat.

redblue
-Interested User-
Posts: 51
Joined: Oct 29, 2009


Posted: Nov 1, 2009 04:05 PM          Msg. 3 of 4
Hi,

Thanks for the reply. The heartbeat would be used for a variety of things, perhaps the simplest to explain is the creation of bar data (any grain, but lets use minute bars as an example). If you are watching a symbol that doesn't update every second it's hard to close that 1 minute bar exactly at exchange time (say to run other logic).

Regards,

red.

stargrazer
-DTN Guru-
Posts: 302
Joined: Jun 13, 2005

Right Here & Now


Posted: Nov 1, 2009 04:19 PM          Msg. 4 of 4
This sort of thing can be handled locally with decent resolution. Be sure your computer's clock is sync'd to an NTP server. The time on your computer will then be sync'd to within less than a second of the exchange clocks. You can then use your operating system's API to generate local 1 second heart beats to close out bars and do other related processing.
 

 

Time: Sat May 4, 2024 11:51 AM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003