-
Notifications
You must be signed in to change notification settings - Fork 42
Continuous-aggregate OHLC rollups #100
Copy link
Copy link
Closed
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:apiREST APIREST APIdifficulty:advancedMulti-day projectMulti-day projecthelp wantedExtra attention is neededExtra attention is needed
Description
Activity
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:apiREST APIREST APIdifficulty:advancedMulti-day projectMulti-day projecthelp wantedExtra attention is neededExtra attention is needed
Background
Computing candles on the fly is expensive. Materialized/continuous aggregates give fast OHLC queries at scale.
What to build
Add continuous aggregates (TimescaleDB hypertable + continuous aggregate, or scheduled materialized views) for 1m/1h/1d OHLC, with a refresh policy and a query endpoint that reads the rollup.
Key files
prisma/schema.prisma/sql/migrationssrc/api/candles.tsAcceptance criteria