You can simply Place your bets via API.
- Place Bets
- Example Request
- Example Output (success)
You can simply Place your bets via API.
I'm developing the API client for Ruby now.
Currently this API call returns either {"status"=>"OK"} on success call or {"status"=>"FAIL"} on failed call.
I'd like to have the bet id returned on success call and error message returned on failed call.
Also I've noticed that some odd values like 5.35 are rejected. Where can I read the general rules to make my odds to comply them?
We will work on that Vitaly!
Please open a support ticket so that we can inform you on updates
Hello, how should I place bets on draw result in soccer?
https://www.betbtc.co/league/barclays-premier-league-soccer
It's not clear what value I should set for the "selection" parameter in such case.
Ah, I've found that correct value should be "The Draw"!
Hi, I m trying to place a bet through my python code but it is not working.
Do you have any example?
I get also just a Status 200 back from the API, without placing a bet.
Here my URL:
Any ideas, thanks
I found the solution. I used a GET request instead a POST request. Now it works fine.
Hi Christoph, can you show an example?
Sure. In python:
parameters = {'market_id' : str(betbtc_event_id), 'selection' : player_name, 'odd' : str(odds), 'stake' : str(stake), 'bet_type' : bettyp}
url = add_url_params("https://www.betbtc.co/api/bet/", parameters)
response = requests.post(url, headers=headers)
data = response.json()
thanks, I will try.
I'm trying to place a bet using the API, following this article.
I receive a {"status":"500","error":"Internal Server Error"}
Any private GET API request work fine.
Please assist.
11 Comments