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've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"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
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"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 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 thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"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
"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
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 Datafeed Wish List »How to synchronize ticks between history & watchlist without msec or any sequential id?
Author Topic: How to synchronize ticks between history & watchlist without msec or any sequential id? (4 messages, Page 1 of 1)

sasha
-Interested User-
Posts: 54
Joined: Jul 21, 2004


Posted: Aug 15, 2004 08:17 PM          Msg. 1 of 4
On TCPIP, it seems impossible to synchronize an intra-day tick history request and watchlist request.

Consider the problem of starting a new intra-day trade tick chart for symbol X after market open. It needs to display today's old ticks and subscribe to all new ticks.

This isn't a problem if you are subscribed before market open and have no crashes or network failures, etc...

Without IQFeed providing at least milliseconds on the Watchlist Update message, its impossible to know where the Watchlist tick messages begin and the Historical tick messages end.

Even then, with milliseconds its still a guess as there may or may not be duplicates at the historical->watchlist juncture.

Better still a proper sequential daily tick identifier on each message is required including the seconds and milliseconds.

The sequential daily tick identifier, starting at 0 for each day, sequentially orders all trades and quotes - either trades and quotes together (in the case of a single trade and quote stream or seperate trade and quote streams) or trades and quotes individually.

Each Watchlist tick (trade and quote) gets a sequential/unique id or counter for the day:
Q,0,MSFT,...HH:MM:SS:ZZZt,....
Q,1,MSFT,...HH:MM:SS:ZZZb,....
Q,2,MSFT,...HH:MM:SS:ZZZa,....

This sequential tick identifier is only a change to the message and doesn't change the API.

Another alternative could be to change the Watchlist API to optionally send historical/today's ticks in addition to updates so it sends all historical ticks and appends a snap/batch complete message before it sends updates for example. But I'm assuming changing the API is a lot more work.


In the problem case listed above, it would be more efficient to only send previous/today's trade ticks and not the previous/today's quotes when building the chart.

In other problem cases like recovery or specialized analytics for example I need to recover previous/today's quotes in addition to trades. But this is still useless without milliseconds and a sequential tick identifier! (at least in the current API the historical tick request will send trade and quote ticks in the same stream - I'm guessing in the order they arrived)

Maybe you could think about splitting historical trade and quote tick requests so they are optional in each request - either Trade or Quote or both. This way you could save on bandwidth at least for the problem case listed above. Then if you request trade or quotes seperately, using the sequential tick identifier you can still match them and order them correctly.

You could also apply this trade or quote or both optionality to the watchlist request. Using the sequential tick identifier we could piece them both back together if for example we want to save them to db for example or enable quotes and ticks half way through the day.


...But in the mean time, to get around this problem with the current API, I guess I have to subscribe to 500, 1300 or 15000+ symbols before market and subsequently waste many megabytes per minute of bandwidth and resources of the DTN servers. And then hope that my app, IQFeed, the PC, or the Internet don't crash.

Jay mentioned DTN are going to add seconds and hopefully milliseconds in the future.

sasha
-Interested User-
Posts: 54
Joined: Jul 21, 2004


Posted: Aug 17, 2004 09:12 PM          Msg. 2 of 4
Any comments or tips from DTN if this is wacked out, makes any sense and/or maybe how I can solve this please?

Unless we can work around this problem then I think its a worthy topic for discussion before the next release.

DTN_Tim_Russell
-IQ Server Developer-
Posts: 41
Joined: May 3, 2004

DTN Market Access, LLC.


Posted: Aug 18, 2004 09:47 AM          Msg. 3 of 4
Sasha,

We plan on adding the exchange's Tick Identifier to the historical data and the data feed. It's my understanding that this value is guaranteed to be greater than the last for each new tick.

We also plan on adding second resolution. With the tick identifier, though, I don't really see a need for millisecond resolution here. The exchanges don't transmit time with millisecond precision, and, taking propagation times between the exchanges and the end user into account, any millisecond value would be totally arbitrary and based only on system times here.

Tim Russell
Software Engineer
DTN IQ & FinWin

sasha
-Interested User-
Posts: 54
Joined: Jul 21, 2004


Posted: Aug 18, 2004 01:07 PM          Msg. 4 of 4
Great to hear Tim!

This will be very useful. Thank you.
 

 

Time: Wed April 24, 2024 11:00 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003