Open benjamen opened 5 months ago
Hey Benjamen, thanks for letting me know about this and I'm glad that this can be of use to you! I will add functionality for Betfair (+ other bookies) when I revisit this project in a little while. Regarding issues with index errors (should've used try catch blocks oops), it's usually being caused by websites displaying live odds which sometimes messes up the data tabulation. Are you running into this issue in the above scenario, or is it something completely separate?
WIth the second error message, looking like an SSL verification issue. That might be a byproduct of something wrong with scraping, I'm really not sure. Let me do some testing and see if I can recreate this behaviour. Thanks for giving me a headsup!
Correct about the Live Odds, i think as it's the NBA games are on right now. Awesome. Let me know if i can help with anything
If it's because of the live odds, I think I have a fix figured out. Shouldn't take me too long, thanks for the headsup.
No worries, Just to clarify I think SPORTSBET is the SSL issue causing the different the Home and Away Odds Lengths (so i have commented out on my copy) and then for POINTSBET i think is a live odd issue - see below (as this was not an issue before the game) :
Running for Pointsbet
Traceback (most recent call last):
File "C:\Users\benwa\Documents\arbitrage-betting-bot\src\main.py", line 81, in
KeyError: 'Orlando Magic'
Yep the tool should work fine before any games start (though betfair seems to have issues on occasion since sometimes they 'feature' games?). I know Sportsbet also offers live odds, so I'll look into a fix for both.
That's great thank you.
Hey Mate, Love the code and would like to explain it for Betfair. I have found when one of the sites doesn't have the team odds then the length and index of the home and away odds table don't match there is an exception.
Traceback (most recent call last): File "C:\Users\benwa\Documents\arbitrage-betting-bot\src\main.py", line 78, in
main()
File "C:\Users\benwa\Documents\arbitrage-betting-bot\src\main.py", line 75, in main
tabulate_data(team_dict)
File "C:\Users\benwa\Documents\arbitrage-betting-bot\src\main.py", line 44, in tabulate_data
opp = round((1/home_odds[i] + 1/away_odds[i]) * 100, 3)