MiniCTRMSearch

MiniCTRM - Build Tutorial 663: Futures: contract codes, the contract calendar, lots and expiry

→ 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

Exchange contract codes and a contract calendar with every month's delivery days and last trading day as dates, futures booked in whole lots and pinned to the cent, an undiscounted value, expiry read from the calendar and the System Date, a ticket, the position in lots and MMBtu, and futures on the blotter's type filter.

  • Codes, months, lots and expiry – Contract codes and symbols, the last trading day, whole lots, a value that is not discounted, and NGF27 worked through.
  • Build it – The checklist first, then contract codes and the calendar, the futures deal, expiry, and the ticket, the position and the blotter.
  • Ship it – Quick CI, a pull request, a squash merge.
  • How MiniCTRM did it – New Future, and the Contract Code screen with its settlement dates.

Before you start

The lessons this one builds on: 522 Designing the deal model: how to tell Claude what you want, 532 Front end: the Deal Blotter, 533 Front end: the Deal Input Screens, 542 Market data: forward curves, FX, settlement prices and closes, 601 Valuation and reports: mark-to-market, valuation runs, position, day-over-day change, 658 Adding a new trade type to a live system: the master checklist.

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

A contract the exchange writes

1 / 13
A contract the exchange writes
Codes, months, lots and expiry

Codes, months and lots

2 / 13
Codes, months and lots
Codes, months, lots and expiry

A value that is not discounted

3 / 13
A value that is not discounted
Codes, months, lots and expiry

NGF27, worked through

4 / 13
NGF27, worked through
Build it

The checklist first

5 / 13
The checklist first
Build it

Contract codes and the contract calendar

6 / 13
Contract codes and the contract calendar
Build it

The futures deal

7 / 13
The futures deal
Build it

Expiry

8 / 13
Expiry
Build it

The ticket, the position and the blotter

9 / 13
The ticket, the position and the blotter
Ship it

Ship it

10 / 13
Ship it
How MiniCTRM did it

New Future in MiniCTRM

11 / 13
New Future in MiniCTRM
How MiniCTRM did it

Contract Code and its settlement dates

12 / 13
Contract Code and its settlement dates
What you have now

What you have now

13 / 13
What you have now

You have finished lesson 663, Futures: contract codes, the contract calendar, lots and expiry.

Where next?

← → move · N notes · Home / End