betcode-org / betconnect

betconnect - API client
MIT License
7 stars 6 forks source link

selections_for_market where top_price is True #42

Open BroomJack opened 1 year ago

BroomJack commented 1 year ago

Issue here is a validation problem. The endpoint selections_for_market from the betconnect api will retur a field called price when top_price is True, however the validation expects it to be prices. This is most likely because the default value for top_price is False and this this will return the 'prices' field it is looking for. Therefore we need 2 different validation sets for when selections_for_market is top_price = False and top_price True.