Just wondering if anybody knows how to find the time stamp when the data you receive left the betfair server.
on the old api we could look at header.timestamp to find this.
My concern is that I send a request (request 1) to get market data at time x this takes 200ms to reach the exchange then the response takes 700ms to return back so the data I receive reflects time x + 200ms.
If I send another request at x + 200ms (request 2) and it gets there in 200ms and takes 200ms to return then the data received reflects time x + 400ms on the exchange. Hence a more recent update/reflection of the world
Under the above scenario I will get a response from request 2 before request 1, yet request 2 is a snapshot of the world at 200ms after request 1.
I would normally only update my market data or view of the world if I know it is the most up to date, to do this one needs to see what time the data left betfairs server?
Any suggestions to work this out would be greatly appreciated.
Cheers
on the old api we could look at header.timestamp to find this.
My concern is that I send a request (request 1) to get market data at time x this takes 200ms to reach the exchange then the response takes 700ms to return back so the data I receive reflects time x + 200ms.
If I send another request at x + 200ms (request 2) and it gets there in 200ms and takes 200ms to return then the data received reflects time x + 400ms on the exchange. Hence a more recent update/reflection of the world
Under the above scenario I will get a response from request 2 before request 1, yet request 2 is a snapshot of the world at 200ms after request 1.
I would normally only update my market data or view of the world if I know it is the most up to date, to do this one needs to see what time the data left betfairs server?
Any suggestions to work this out would be greatly appreciated.
Cheers


Comment