# higgseight/acebot architecture

> Architecture diagram of the GitHub repository higgseight/acebot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/higgseight/acebot
- Repository: https://github.com/higgseight/acebot
- Video tour (about a minute): https://gitdiagram.com/higgseight/acebot/video

## Overview

This repository generates a small arbitrage-odds feed for a website. The generator fetches odds from The Odds API, finds the best bookmaker price per outcome, calculates qualifying margins, keeps the top two, and writes dated JSON. The generator’s docstring says that JSON feeds index.html. The HTML implementation was not sampled, so its display behavior and any visitor interactions are not represented.

Main entry points: [`generer_donnees_site.py`](https://github.com/higgseight/acebot/blob/main/generer_donnees_site.py) (Odds generator), [`data/marges.json`](https://github.com/higgseight/acebot/blob/main/data/marges.json) (Margin feed), [`index.html`](https://github.com/higgseight/acebot/blob/main/index.html) (Website)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_generator["Odds generator"]
node_odds_api["The Odds API"]
node_feed["Margin feed<br/>[marges.json]"]
node_website["Website<br/>[index.html]"]

node_generator -->|"fetches odds"| node_odds_api
node_generator -->|"writes JSON"| node_feed
node_feed -->|"feeds"| node_website

click node_generator "https://github.com/higgseight/acebot/blob/main/generer_donnees_site.py"
click node_feed "https://github.com/higgseight/acebot/blob/main/data/marges.json"
click node_website "https://github.com/higgseight/acebot/blob/main/index.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_generator,node_feed,node_website toneTeal
class node_odds_api toneMint
```

## Components

### Other components

- [Odds generator](https://github.com/higgseight/acebot/blob/main/generer_donnees_site.py): `generer_donnees_site.py`
- **The Odds API**
- [Margin feed](https://github.com/higgseight/acebot/blob/main/data/marges.json): `data/marges.json`
- [Website](https://github.com/higgseight/acebot/blob/main/index.html): `index.html`

## Connections

- Odds generator → The Odds API: fetches odds (evidence: `generer_donnees_site.py`)
- Odds generator → Margin feed: writes JSON (evidence: `generer_donnees_site.py`)
- Margin feed → Website: feeds
