- Cloudbet account, get it for free at https://www.cloudbet.com/en/auth/sign-up
- Valid API Key and API Secret, get it for free at https://www.cloudbet.com/en/player/api
import std/[httpcore, uri], cloudbet
let client: Cloudbet = newCloudbet(apiKey = "YOUR_CLOUDBET_API_KEY")
let preparedRequest = client.getSports()
doAssert preparedRequest is tuple[metod: HttpMethod, url: Uri, headers: array[3, (string, string)], body: string]
# Use "preparedRequest" with HttpClient, JsFetch, JsHttpClient, xmlhttprequest, or your favorite HTTP lib, etc...
KISS design, only uses httpcore
, uri
, macros
from StdLib, 0 Dependencies.
From Cloudbet API Docs:
When using the API be considerate. If the bet rejection rate on the betting API is too high (>75% on your last 100 bets), your account will be flagged for abusive behaviour. You may get blocked for up to 7 days for integrity checks. Bet endpoint has a rate limit of 1 Request per second.
- https://www.cloudbet.com/en/blog/posts/sports-betting-api-tutorial-with-golang
- https://github.com/Cloudbet
- https://gist.github.com/kgravenreuth/6703e1e213aecac4d5728f2f699d34e7
- https://github.com/Cloudbet/docs/discussions
- See also https://github.com/juancarlospaco/binance#binance
- See also https://github.com/juancarlospaco/tradingview#tradingview
⭐ @juancarlospaco
⭐ @luisacosta828
⭐ @mrgaturus
⭐ @Nacho512
⭐ @AndrielFR
⭐ @kgravenreuth
⭐ @hugosenari
⭐ @novocaine1926
⭐ @DaGrizzly1
⭐ @jpaslay
⭐ @teroz
⭐ @mackbdev
⭐ @oguzakd
⭐ @MrDeeleon
⭐ @virgoancode