listClearedOrders doesn't show lapsed bets until the market is settled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ipposnif
    Member
    • Mar 2014
    • 36

    #1

    listClearedOrders doesn't show lapsed bets until the market is settled

    Hi,
    I'm looking for a way to check lapsed bets in the period from market suspension to market settlement. Actually I'm using listClearedOrders passing only a list of bet IDs as filter, but the API returns an empty response ({"jsonrpc":"2.0","result":{"clearedOrders":[],"moreAvailable":false}}) till the market is settled. Then, when the market is settled, or close to its settlement, the API returns the expected result.
    Which is good practice? Can I assume that bets not anymore present in listCurrentOrders can be considered lapsed?
    Thanks in advance for any help
    Last edited by Ipposnif; 12-06-2020, 09:14 PM.
  • weather
    Junior Member
    • Oct 2012
    • 1

    #2
    Bumping an old message here as I had a similar query. Can anyone give some pointers on how to retrieve all uncleared orders via the API?

    I have observed that once a race begins and a market is suspended, BSP orders are no longer returned by listCurrentOrders (called without any parameters). The order is not returned from listClearedOrders (queried for both SETTLED and LAPSED bet status) until the market settles.

    How can you observe the order from the API in the interim period?

    Thanks

    Comment

    • MarcusMel
      Junior Member
      • Aug 2009
      • 19

      #3
      Once the race starts or sometimes with a withdrawn horse the orders available to BSP are matched. I think you will find listmarketbook to be more informative.

      Comment

      Working...
      X