betcode-org / betconnect

betconnect - API client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status PyPI version Downloads

betconnect

Simple python wrapper for the BetConnect api, allowing for retriveal of data for active betting markets and betting operations associated with those markets, see examples

docs

join betcode slack group

client requirements

  • betconnect account (client required username & password) - can be set up via the staging and production websites.

  • api key - the api key associated with you account. Unique per environment.

  • personalised production url - live (production) accounts have unqiue urls associated with your account.

Using the library

import betconnect

# create a client
client = betconnect.APIClient(username='username',
                              password='password',
                              api_key='api_key',
                              personalised_production_url='https://custom.betconnect.com/')

# login
client.account.login()

# find active sports
active_sports = client.betting.active_sports()

Available endpoints:

  • client.account - login, logout, account preferences
  • client.betting - find active sports, competitions, markets. Create and find bet requests.

About

betconnect - API client

License:MIT License


Languages

Language:Python 100.0%