Hi
I was struggling to understand how betids work when we have a partially matched bet. Unless I have missed it the manual just doesn't explain it at all.
If a single bet is sent with placeOrders(), it may or may not get matched initially, or maybe just partially matched.
So lets say it was initially £10.00 not matched. That would have a bet ID x.
Then some time later we get a match of £4.00, this appears as execution_complete order in listOrders() with a betId of y and sizeMatched 4.00.
Presumably we then see a remaining bet of £6.00, execution_incomplete in listOrders(), lets say this appears as betId = z.
Then some further time later that last portion is matched and will appear as execution_complete order in listOrders() with a bet Id of z and sizeMatched 6.00.
Can anyone clarify if this description is correct or not ?
Also, does the execution_incomplete portion also change its betId as portions are matched or maintain its original ID ? Don't know ?
The Betfair docs should be much clearer on this especially as its something that is very awkward to test to figure out.
Thanks for any clarification.
Geoff
I was struggling to understand how betids work when we have a partially matched bet. Unless I have missed it the manual just doesn't explain it at all.
If a single bet is sent with placeOrders(), it may or may not get matched initially, or maybe just partially matched.
So lets say it was initially £10.00 not matched. That would have a bet ID x.
Then some time later we get a match of £4.00, this appears as execution_complete order in listOrders() with a betId of y and sizeMatched 4.00.
Presumably we then see a remaining bet of £6.00, execution_incomplete in listOrders(), lets say this appears as betId = z.
Then some further time later that last portion is matched and will appear as execution_complete order in listOrders() with a bet Id of z and sizeMatched 6.00.
Can anyone clarify if this description is correct or not ?
Also, does the execution_incomplete portion also change its betId as portions are matched or maintain its original ID ? Don't know ?
The Betfair docs should be much clearer on this especially as its something that is very awkward to test to figure out.
Thanks for any clarification.
Geoff



Comment