mberk / betfairutil

Utility functions for working with Betfair data
MIT License
30 stars 9 forks source link

Incorrect book percentage on runner removal #3

Closed liampauling closed 2 years ago

liampauling commented 2 years ago

During a runner removal prices are removed but runner is still active:

Screenshot 2021-08-06 at 13 45 41

This code results in 1 being returned, ideally lay side is checked for prices as well before defaulting to 1.

mberk commented 2 years ago

It's not clear to me what the "correct" book percentage should be in this case. Any idea what the Betfair website displays?

liampauling commented 2 years ago

it would be 113.4%, example here where empty prices are treated as 0 and not 1

Screenshot 2021-08-06 at 17 06 26

mberk commented 2 years ago

Take a look at the PR

mberk commented 2 years ago

Fixed in the next release