listMarketBook out of order responses

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fufufufufu
    Junior Member
    • Oct 2018
    • 3

    #1

    listMarketBook out of order responses

    Hi,

    I'm trying to use listMarketBook function to return the best prices every second or so, which seems to work, but is giving me results that are out of time order. I'm still on a delayed market data API key so I expect the data to be behind the website but I would also expect the data to be in order.

    Here is a snippet of what I get back for 3 consecutive listMarketBook calls (first datetime stamp is the request time then the json MarketBook repsonse):
    2018-10-27 17:25:22.934,{"marketId":"1.150231490","isMarketDataDelayed":t rue,...,"lastMatchTime":"2018-10-27T16:24:40.107Z","totalMatched":191583.95,...,"version":2479406487,"runners":...}
    2018-10-27 17:25:24.052,{"marketId":"1.150231490","isMarketDataDelayed":t rue,...,"lastMatchTime":"2018-10-27T16:24:08.462Z","totalMatched":171015.01,...,"version":2479406487,"runners":...}
    2018-10-27 17:25:25.128,{"marketId":"1.150231490","isMarketDataDelayed":t rue,...,"lastMatchTime":"2018-10-27T16:24:42.353Z","totalMatched":192554.17,...,"version":2479406487,"runners":...}

    As you can see the lastMatchTime is jumping backwards on the second call and then reverting on the 3rd. I'm using the sample api-ng code so I'm sure the requests are valid and its exatcly the same requested repeated over the calls.

    Has anyone come across this issue before? Any suggestions on how to deal with this would be much appreciated.

    Thanks,

    Fu
  • LiamP
    Junior Member
    • Oct 2015
    • 284

    #2
    You need to purchase an appKey.

    Comment

    Working...
    X