Adam Bandel


Augur Engine

Nov 2026
Type: data-pipeline
Code: 160k lines
Files: 639
Active: Dec 2025 to Nov 2026
Stack:
PythonDagsterClickHousePostgreSQLPolarsFastAPISQLiteDocker
Tags:
financedataaideveloper-tools

Overview

Augur Engine is a financial data pipeline built on Dagster. It pulls market prices, SEC filings, government records and economic data from about 30 sources, none of them paid, and refines them through Bronze, Silver and Gold tiers (the Medallion Architecture) into ClickHouse tables for quantitative analysis.

On top of the data sits a strategy lab. LLM agents write investment strategies as JSON, backtest them without seeing the future, and paper-trade them forward as new data lands. Four paper firms, each with its own $1M paper book and allocation rules, decide which of those strategies to fund. The data is broad on purpose, covering SEC filings, Congressional bills, lobbying records, institutional holdings and macro indicators, so that the agents can look for trading signals beyond price.

It runs on my PC under Docker Desktop: Dagster, ClickHouse, PostgreSQL and a FastAPI dashboard in four containers, with the strategy lab as a separate process beside them. On 8 November 2026 the pipeline had 271 Dagster assets, 159 ClickHouse tables and 674 asset checks.

The code is private. This page describes it; there is no repository to link.

Screenshots

Asset Graph

Market Dashboard

Query Explorer

Problem

Building a quantitative trading strategy takes a wide range of financial data that can be trusted. Most retail and small institutional traders have that data scattered across sources with inconsistent schemas, some of it stale, and nothing to combine market prices with alternative data like SEC filings, Congressional bills or institutional fund flows.

Augur Engine pulls about 30 of those sources into one database that can be queried directly. Ingestion is automated, rate limited and incremental, and asset checks generated from the table definitions validate the tables as they load. Backtests read every signal as of that day’s close and fill orders at the next day’s open, so a strategy cannot trade on data it would not have had.

Approach

Stack

The Strategy Lab and the Firms

Challenges

Outcomes

Defining every table once in code, as a ClickHouseTableSchema, keeps the code and the database from drifting apart. Asset checks catch bad rows in a table that loads, but they did not catch sources that stopped arriving while their runs succeeded; that took a watchdog that compares every table with how far behind it is allowed to be. Rate limiting needs coordination across workers; in-memory buckets fail as soon as there is more than one.

Limits

Implementation Notes

Schema-Driven Architecture

Every table is defined once as a Python dataclass, and its DDL, IO manager config and asset checks are generated from that definition:

RAW_OHLCV_DAILY = ClickHouseTableSchema(
    name="raw_ohlcv_daily",
    tier="bronze",
    description=(
        "Daily OHLCV from Stooq bulk drops and the yFinance gap-fill, AS DELIVERED: "
        "Stooq is split-adjusted (and partly dividend-adjusted) as of its drop, yFinance "
        "split-adjusted as of its fetch. source/source_asof/split_basis_date/div_basis_date "
        "record what each bar already contains."
    ),
    engine="ReplacingMergeTree",
    order_by=("instrument_id", "date"),
    partition_by="toYYYYMM(date)",
    primary_key=("instrument_id", "date"),
    columns={
        "instrument_id": pl.UInt32,
        "date": pl.Date,
        "open": pl.Float64,
        "high": pl.Float64,
        "low": pl.Float64,
        "close": pl.Float64,
        "volume": pl.Float64,
        "source": pl.String,  # "stooq" | "yfinance"
        "source_asof": pl.Date,
        "split_basis_date": pl.Date,
        "div_basis_date": pl.Date,
    },
    nullable_columns=("source_asof", "split_basis_date", "div_basis_date"),
    # column_codecs, column_comments and owner_assets omitted here
    watermark_column="date",
    metadata_extractors=("row_count", "instrument_count", "quarantine_stats"),
)

Strategy Rules

The rules from one of the agent-written strategies: a stop at -13%, a half trim at +35%, and a move to 50% cash when volatility spikes or breadth breaks down.

"rules": [
  { "when": {"field": "position.unrealized_pct", "op": "<=", "value": -0.13},
    "do": "sell", "scope": "position", "note": "cut losers (report: 12-15% single-name / 8-10% ETF, uniform proxy)" },
  { "when": {"field": "position.unrealized_pct", "op": ">=", "value": 0.35},
    "do": "trim", "amount": 0.5, "scope": "position", "note": "take partial profit on fast movers (+25-40% band)" },
  { "when": {"any": [
      {"field": "macro.vix", "op": ">", "value": 25},
      {"field": "macro.breadth_above_sma50", "op": "<", "value": 40}
    ]},
    "do": "go_to_cash", "target_cash": 0.5, "scope": "portfolio",
    "note": "tail-risk breaker: de-risk on vol spike / breadth breakdown (report emphasizes elevated SKEW)" }
],

Data Provider Coverage

Category Providers
Market Data Stooq, yFinance, Polygon (Massive), CBOE, FINRA
SEC Filings 13F holdings, Form 4 insider, N-PORT funds, FTD, XBRL fundamentals, Exhibit 21 subsidiaries
Macro FRED, Treasury, BLS, EIA, World Bank, BIS, ECB, CFTC, NFIB
Government Congress.gov, LobbyView, Senate LDA, USAspending
Reference GLEIF (LEI), Fama-French factors, Nasdaq listings, Wikipedia index constituents

Related Posts

No posts yet.