Follow these steps to install the tool, run a latency measurement, and send us the results.
Install uv (skip this if you already have it):
curl -LsSf https://astral.sh/uv/install.sh | sh
Download the project archive, latency-monitor-main.zip, then unzip it:
unzip latency-monitor-main.zip
cd latency-monitor-main
Install the project's dependencies:
uv sync
Copy the example environment file to .env:
cp .env.example .env
Open .env in a text editor and set your API key:
OPTICODDS_API_KEY=your-api-key-here
Run the script with uv run, e.g.:
uv run pinnacle_latency.py --sport soccer --duration 120
--duration seconds (default 60), or
you can press Ctrl+C to stop early.--sport,
--league, --fixture_id, --live, --duration, etc.).When it finishes, two CSV files will be created in the output/ folder:
pinnacle_latency_<timestamp>.csv — the full event reportpinnacle_latency_<timestamp>_stats.csv — the latency summary statisticsEmail both files from the output/ folder to clients@opticodds.com:
pinnacle_latency_<timestamp>.csvpinnacle_latency_<timestamp>_stats.csvThat's it — thank you!