Skip to content

juancarlospaco/cloudbet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudbet Virtual Crypto Casino API Client

Requisites

Examples

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.

Limits

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.

More about Cloudbet

More

Stars

@juancarlospaco@luisacosta828@mrgaturus@Nacho512@AndrielFR@kgravenreuth@hugosenari@novocaine1926@DaGrizzly1@jpaslay@teroz@mackbdev@oguzakd@MrDeeleon@virgoancode@prorab2011@kacoom@ZeVK1