Skip to main content

A Python wrapper for the GRV Topaz API

Project description

Topaz API

A simple Python Wrapper for the GRV Topaz API. Quickly written with the help of ChatGPT.

Requires a Topaz API key obtainable through the Betfair Automation team @ api@betfair.com.au

Docs

Installation

pip install topaz_api

Usage

from topaz import TopazAPI

api_key = 'YOUR_API_KEY_HERE'
topaz_api = TopazAPI(api_key)

Suggested work flow

# Might take 4 or 5 mins to run
races = topaz_api.get_races(from_date='2023-12-01', to_date='2023-12-06')
race_ids = list(races['raceId'].unique())

race_runs = []
for race_id in race_ids:
    race_run = topaz_api.get_race_runs(race_id=race_id)
    race_runs.append(race_run)

race_runs = pd.concat(race_runs)
print(race_runs)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Topaz_api-0.0.5.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

Topaz_api-0.0.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file Topaz_api-0.0.5.tar.gz.

File metadata

  • Download URL: Topaz_api-0.0.5.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for Topaz_api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 fc56ea0dc325a2d90b20e9ad3c5f884f22f44fdec96217953e16d0e4376d6ecd
MD5 0409d2a53a4320338a447fe88b5e5d44
BLAKE2b-256 784f3e6dde7d277cadb83fccc0489a8abfda6abdd5611f32a27ddbf314dda149

See more details on using hashes here.

File details

Details for the file Topaz_api-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: Topaz_api-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for Topaz_api-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e407a8f35ffab894b6e00c128c656d55ec3df12928d84be113c82f0a2e28c2
MD5 cc0becb1048c862461d5b2a7190734cb
BLAKE2b-256 2527e4fddbc03476c56ad5eb6e192837f46698db10010543278d49dee209c832

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page