Hi guys,
I will try to make it brief this time.
I have begun the integration of IB's API into my platform.
And all went well until I had started working on the market data feed.
The problem I have encountered is as follows:
Since the tickprice/ticksize callbacks are called separately for each field, I need some sort of synchronization in place in order to make sure that the latest tick I store is valid.
For instance, if we have a price update of MSFT from 72 to 72.1, I know for a fact that there should also be a ticksize update of the volume and so I must wait for it, otherwise I have a tick with latest price but out of date volume.
So here are my questions:
1. Is it guaranteed that I will get the updates for a specific ticker in order?
For Example: last price -> size -> bid -> bid size -> ask -> ask size -> volume.
2. Is it possible that two updates of the same ticker interleave with each other?
For Example:
last price 1 -> size 1 -> bid 1 -> bid size 1 -> ask 1 -> ask size 1 -> volume 1.
_____last price 2 -> size 2 -> bid 2 -> bid size 2 -> ask 2 -> ask size 2 -> volume 2.
I will try to make it brief this time.
I have begun the integration of IB's API into my platform.
And all went well until I had started working on the market data feed.
The problem I have encountered is as follows:
Since the tickprice/ticksize callbacks are called separately for each field, I need some sort of synchronization in place in order to make sure that the latest tick I store is valid.
For instance, if we have a price update of MSFT from 72 to 72.1, I know for a fact that there should also be a ticksize update of the volume and so I must wait for it, otherwise I have a tick with latest price but out of date volume.
So here are my questions:
1. Is it guaranteed that I will get the updates for a specific ticker in order?
For Example: last price -> size -> bid -> bid size -> ask -> ask size -> volume.
2. Is it possible that two updates of the same ticker interleave with each other?
For Example:
last price 1 -> size 1 -> bid 1 -> bid size 1 -> ask 1 -> ask size 1 -> volume 1.
_____last price 2 -> size 2 -> bid 2 -> bid size 2 -> ask 2 -> ask size 2 -> volume 2.
