Hi!
If I place a bet with PERSIST flag,
and the bet is matched during in-play,
how can I find out via the api-ng if it was matched?
it seems that listCurrentOrders is only good before
the race is settled
which is fine, I got EXECUTION_COMPLETE in this case.
But for an order that has a settled market I get an empty reply
The bet above was matched at in-play. But I did not poll
between the in-play and end of race, thus missing the match.
How can I get the matching status of a bet after the race is settled?
/Björn
If I place a bet with PERSIST flag,
and the bet is matched during in-play,
how can I find out via the api-ng if it was matched?
it seems that listCurrentOrders is only good before
the race is settled
Code:
2013-11-20 17:35:09.872 RPC. : posting: {"method":"SportsAPING/v1.0/listCurrentOrders", "jsonrpc":"2.0", "id":15, "params":{"betIds":["31842324833"], "placesDateRange":{}}}
2013-11-20 17:35:09.916 RPC.Bet_Is_Matched : Got reply: {"id":15, "jsonrpc":"2.0", "result":{"moreAvailable":false, "currentOrders":[{"marketId":"1.111937147", "betId":"31842324833", "handicap":0.00000E+00, "orderType":"LIMIT", "sizeCancelled":0.00000E+00, "bspLiability":0.00000E+00, "selectionId":5473866, "sizeVoided":0.00000E+00, "status":"EXECUTION_COMPLETE", "matchedDate":"2013-11-20T16:32:16.000Z", "placedDate":"2013-11-20T15:29:52.000Z", "sizeLapsed":0.00000E+00, "side":"BACK", "priceSize":{"size":3.00000E+01, "price":2.00000E+01}, "regulatorCode":"MALTA LOTTERIES AND GAMBLING AUTHORITY", "sizeMatched":3.00000E+01, "persistenceType":"PERSIST", "sizeRemaining":0.00000E+00, "averagePriceMatched":2.00000E+01}]}}
But for an order that has a settled market I get an empty reply
Code:
2013-11-20 20:34:08.912 RPC. : posting: {"method":"SportsAPING/v1.0/listCurrentOrders", "jsonrpc":"2.0", "id":15, "params":{"betIds":["31846248762"], "placesDateRange":{}}}
2013-11-20 20:34:08.936 RPC.Bet_Is_Matched : Got reply: {"id":15, "jsonrpc":"2.0", "result":{"moreAvailable":false, "currentOrders":[]}}
between the in-play and end of race, thus missing the match.
How can I get the matching status of a bet after the race is settled?
/Björn




Comment