I’m looking for the best code for these functions!

Python bot for betting with the following function

Rule 1: The minimum odd of the favorite player has to be @1.45 or more.

Rule 2: The difference in the odd between the favorite and outsider has to be @0.50 or more

1 - The bot is in Tennis Sport (all ATP; WTA; CHALLENGERS)

2 - Scan all tennis games and find games with odds minimun @1.45 and difference of 0.50 or more between Player Y and Player X . (example: a game between Player Y and Player X odds are 1.60 to one and 2.20 = 0.60 - this game the bot would have to find)

3 - I would like the bot to get odds information from bookmakers in my country, at most 3 bookmakers or it can even be from Next Tennis Matches.

4- Possibility to choose the day on which the games are played, for example the next day or more…never more than 3 days!

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at https://www.freecodecamp.org/learn.

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Anyway, we might be able to help you IMPROVE code you have already written. But nobody here is going to just write a bot for you so you can bet on some tennis matches. At least nobody is going to do that for free.