Time Stamp when data leaves Betfair Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rphi6876
    Junior Member
    • Nov 2009
    • 7

    #1

    Time Stamp when data leaves Betfair Server

    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
  • simondo
    Junior Member
    • Jul 2014
    • 1

    #2
    Originally posted by rphi6876 View Post
    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
    I'm also interested to know if there is a way of getting a timestamp with prices. Although I've read the documentation, more in hope than anything, and nothing suggests where it could be found.

    If not it seems like a step backwards from the old API which is disappointing. Although I know with the old API there were disclaimers about the accuracy of the timestamp, but it was at least useful as 'take it or leave it' information.

    Comment

    Working...
    X