Missing OrderProjection response when calling listMarketBook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • winterwooksie
    Junior Member
    • Nov 2019
    • 18

    #1

    Missing OrderProjection response when calling listMarketBook

    I have a bot that has been running for many years on different markets. I have just created a new system to run on Australian Dogs and noticed that intermittently I am not receiving back my Orders for runners when calling listMarkBook. This seems to be an intermittent issue as calls before and after do return my orders for a particular runner. The consequence of this is that my code believes I have no positions on a particular runner and makes a new bet.

    To resolve this in the short term, I am going to keep track of my orders internally within my program. Just wondered if anyone else has experienced this issue ?

    For completeness, I usually request OrderProjection as "ALL" in requests to the API. Orders and Matches are returned for the other runners. Even if there are runners without any bets I would expect an empty Orders[] node to be returned.
    Last edited by winterwooksie; 29-03-2020, 04:23 PM.
  • winterwooksie
    Junior Member
    • Nov 2019
    • 18

    #2
    Update, I've noticed that this occurs intermittently when a call to listMarketBook is done immediately following a call to replaceOrder. Reading the docs for replaceOrder it looks as if the call can be made asynchronously with an async flag, i'm not supplying this, so the default should be false according to the documentation. However, it seems as if internally within the betfair api code I suspect it is still doing this and essentially manifesting itself as a race condition. Anyone else come across this, it happens quite rarely ?

    Comment

    Working...
    X