Skip to content

Fortune

This site documents the fortune dbt project — the analytics layer of the neo-fortune platform that turns raw Bet365 odds and event feeds into match-level betting strategy outputs on ClickHouse.

The pipeline is organised in five layers, each with its own section in the sidebar:

LayerWhat it covers
RawSource tables loaded by the Scrapy crawler — the untyped JSON landing zone.
SourcesFirst-cast, typed projections of the raw JSON into well-defined columns.
CalculationsPer-event derivations: pre-match and in-play odds aggregates, scores, team strength, expected goals, probabilities, and betting strategy metrics.
MartWide, query-ready tables that join calculations into a single row per match (or per match-minute).
ElementaryTest and run-result views built on top of the Elementary dbt package, exposed by event_date for trend analysis.

Every model in the dbt project has its own page containing:

  • A Mermaid lineage diagram showing the immediate parents (upstream refs/sources) and children (downstream refs).
  • A columns table listing every column with its description and the formula or expression that produces it.

Use the sidebar to navigate; pages are grouped by the layer the model lives in.