API - Help with an error #39
Unanswered
bigtimemimi
asked this question in
Q&A
Replies: 1 comment
-
Hi @bigtimemimi While it is tough for us to comment without seeing more details about the code, here are some pointers:
Refer to our Trading API Documentation for bet status
We have a rate limit of 1 request per second on the Trading API Regards, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi and thank you for your time
I'm by no means a software-savvy person, I'm only a novice looking to have fun with some betting-related projects. Therefore, I might be lacking some pivotal knowledge that I'm not even aware of.
Long story short, I've created a Python bot that grabs soccer odds from Cloudbet, compares them within the given time frame, and attempts to place a bet if a given condition is met.
I've used the same approach for creating a bot that scans 1X2, O/U, and AH markets. Is it okay to run the aforementioned 3 scripts parallelly?
For reasons unknown to me, database odds values get skewed in ~10% scans, so bot attempts to place a bet on a match and number that is higher than current odds. I don't want to spam API with requests, and since I'm not sure how to fix this, would adding
time.sleep(1)
between attempts be of help, or sending 15-20 bet attempts isn't a problem?I don't want to send too many requests - technically, is this 1 API request?
response = session.get(url, params={"sport": "soccer", "date": date, "limit": "155"})
Or is that considered 155 requests?Beta Was this translation helpful? Give feedback.
All reactions