MiniCTRMSearch

MiniCTRM - Build Tutorial 791: Five-minute power: every interval its own volume and price

→ to begin · N for the speaker notes

On a phone: Next or a swipe left to begin, Notes for the words.

What you'll learn

An interval store chosen by measurement and used as the one door, loaders that take millions of values a day safely, deals as shape blocks, valuation on rollups with a time budget, screens a person can read, and retention with an archive - all keyed by UTC start and interval length.

  • Why MiniCTRM stays hourly – MiniCTRM's decision, and what MiniCTRM does with hours.
  • What you need first – The lessons this one builds on, what it reuses, and when to take it.
  • How to model it – Not a column per interval, not a careless row per interval: four shapes measured.
  • Store, load, shape, value – The interval store, loading millions a day, deals as shapes, valuation on rollups.
  • Show it, keep it, ship it – A heat map and honest downsampling, retention and archive, the rules, /ship.
  • How MiniCTRM did it – Hourly settlement prices, one row per hour ending.

Before you start

The lessons this one builds on: 524 Commodities are local: why a commodity system does not travel, and how to make yours, 542 Market data: forward curves, FX, settlement prices and closes, 601 Valuation and reports: mark-to-market, valuation runs, position, day-over-day change, 621 End of day: close the market, run the valuation, automate the night, 622 Running jobs in parallel: the end of day in ten minutes, not twenty, 623 Integrations: CSV in and out, feed adapters and the API, 631 Performance: compress market data, keep a save fast, 641 Ten users or a thousand: what changes, 661 Power: delivery patterns, peak and off-peak, physical and financial.

Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.

Welcome

Twelve times the hours

1 / 15
Twelve times the hours
Why MiniCTRM stays hourly

Why MiniCTRM stays hourly

2 / 15
Why MiniCTRM stays hourly
What you need first

What you need first

3 / 15
What you need first
How to model it

Not a column per interval

4 / 15
Not a column per interval
How to model it

Four shapes, side by side

5 / 15
Four shapes, side by side
How to model it

Measure before choosing

6 / 15
Measure before choosing
Store, load, shape, value

The interval store, the one door

7 / 15
The interval store, the one door
Store, load, shape, value

Loading millions a day

8 / 15
Loading millions a day
Store, load, shape, value

A deal is a shape, not 288 fields

9 / 15
A deal is a shape, not 288 fields
Store, load, shape, value

Valuation without reading everything

10 / 15
Valuation without reading everything
Show it, keep it, ship it

Screens a person can read

11 / 15
Screens a person can read
Show it, keep it, ship it

Retention, archive and the rules

12 / 15
Retention, archive and the rules
Show it, keep it, ship it

Ship it

13 / 15
Ship it
How MiniCTRM did it

Hourly, one row per hour ending

14 / 15
Hourly, one row per hour ending
What you have now

What you have now

15 / 15
What you have now

You have finished lesson 791, Five-minute power: every interval its own volume and price.

Where next?

← → move · N notes · Home / End