Skip to main content

origo.query

What this package owns​

  • Query planning and dataset-specific query execution helpers for native and aligned Origo surfaces.
  • Dataset enums, window types, SQL builders, and response-envelope helpers used beneath the API layer.

What this package does not own​

  • FastAPI request validation or authentication.
  • Canonical ingest, event ordering, or projection runtime authority.
  • Dagster job definitions.

Key entry points​

  • native_core.py
    • execute_native_query
    • NativeQuerySpec
    • TimeRangeWindow
  • aligned_core.py
    • build_aligned_query_plan
    • query_aligned_data
  • Dataset-specific query modules:
    • binance_native.py
    • okx_native.py
    • bybit_native.py
    • etf_native.py
    • fred_native.py
    • bitcoin_native.py
    • *_aligned_1s.py
  • response.py
    • build_wide_rows_envelope

Major dependencies and adjacent modules​

  • Adjacent modules:
    • origo/data
    • api/origo_api
    • origo/events

Canonical docs​

  • ../../docs/Reference/README.md
  • ../../docs/raw-query-reference.md
  • ../../docs/aligned-reference.md