betcode-org / betconnect

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

my_bets Lay side bets validation errors #36

Closed BroomJack closed 2 years ago

BroomJack commented 2 years ago

We have a load of field validation on the response when you hit the my_bets endpoint in the API but if you pass it my_bets/back you'll get a response specific to bet_requests containing fields like profit, matched_stake, and fill_percentage. When you hit my_bets/lay you get fields specific to bets containing fields like liability and not those mentioned for bet_requests.

Issue here is that the field validation is used for both responses and the validation is back side specific so it fails on multiple fields when you try get your layside bets.

jbeasley123 commented 2 years ago

Fixed in https://github.com/betcode-org/betconnect/pull/37