Market Resettlement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stian23
    Junior Member
    • Sep 2015
    • 1

    #1

    Market Resettlement

    Hi,
    has anyone any experience in dealing with market resettlements? (i.e. a market is closed and settled and then, for some reasons, the settlemnt is changed)

    I was wondering what could be the best way to detect that:

    1) issuing a listMarketBook request for a particular market that's already settled and checking the marketVersion in the MarketBook struct against the one I have in the DB (but since there's not lastSettledDate in the same struct, I don't know how to detect if a new marketVersion is due to a resettlement)

    2) issuing a listClearedOrders request for a particular market and checking the settledDate of the bets against the ones I have in the DB

    3) any other ideas?

    Thank you very much for your attention

    Regards

    Stian123
  • StefanBelo.
    Junior Member
    • Jan 2009
    • 105

    #2
    Use Market Streaming API, if a market is resettled it means there is transition between closed market status to suspended and again to closed.
    betfair bot platform, bfexplorer bot sdk

    Comment

    Working...
    X