¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: fine-grained timestamps for reconstruction of market events around a trade execution?


 

That is my understanding, Neal. I work under the assumption that fields such as "time" returned by all TickByTick data feeds as well as? "Last Timestamp" tick #45 represent the epoch time with 1 second resolution for those events at the exchange.

The RtVolume ticks #48 and #77 provide time with 1 milli-second resolution, but it has been suggested that those time stamps are actually generated by TWS and do not represent the time at the exchanges. I have not done that much work with them but that feels correct.

My server is NTP synchronized against a high-quality time source in the data center and nudges time by a few micro-seconds (usually less than 5us) every 16 seconds.

We cannot guarantee that the order of event arrivals at your client is the exact order of the events at the exchanges. Especially if you look at data/events from several exchanges, IBKR market data farms, and IBKR order processing. But the arrival of data for any given stream (say TickByTick Last and TickByTick BidAsk for the same instrument) looks to me as if they are "in order". Even streams for multiple instruments from the same exchange feel like they are substantially in order.

The order will likely not be exact if you compare data from sources with very different latencies (say Europe, Asia, US East, US Central).

It was always good enough for what I am doing (even at the sub-second level. If you need more you'd have to co-locate with IBKR or the exchanges, switch to FIX without TWS/IBGW, and have dedicated hardware time synchronization.

´³¨¹°ù²µ±ð²Ô

?
On Wed, May 7, 2025 at 08:09 AM, Neal Young wrote:

On Tue, May 6, 2025 at 12:19 PM, ´³¨¹°ù²µ±ð²Ô Reinold wrote:

All time stamps for events outside of your computer reported by TWS API currently have a precision of 1 second.

´³¨¹°ù²µ±ð²Ô, thanks.

Can you clarify what the meaning of the 1-second timestamp is? Does it mean that the event happened within the absolute 1-second interval starting at the timestamp?

So (assuming the exchange clock and my computer's clock are exactly accurate) I can know which absolute 1-second interval the event happened in?

By "absolute" here I mean with respect to global / world time.

-Neal

Join [email protected] to automatically receive all group messages.