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
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for Topaz_api-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4e407a8f35ffab894b6e00c128c656d55ec3df12928d84be113c82f0a2e28c2 |
|
MD5 | cc0becb1048c862461d5b2a7190734cb |
|
BLAKE2b-256 | 2527e4fddbc03476c56ad5eb6e192837f46698db10010543278d49dee209c832 |