100s · Foundations 4 lessons
Start here: what the business is and who does what. No prerequisites.
- 101Commodities basicsNew to commodities? Natural gas, power, crude oil and refined products from the beginning - units, forward curves, futures, the kinds of trade, position and mark-to-market - on the desk's own screens.Natural GasPowerCrude Oil
What you'll learn
- What a commodity is – Interchangeable raw materials, who trades them and why, physical and financial.
- Units, curves and prints – Each market's unit, the forward curve and its shape, futures and settlement prices.
- Natural gas – MMBtu and Henry Hub, pipelines, zones and locations, storage and basis.
- Power – MW and MWh, grids and hubs, peak and off-peak, and the blocks of hours traders quote.
- Crude oil – Barrels, WTI and Brent, grades by API Gravity and sulfur, pipelines and ships.
- Refined products – What a refinery makes, prices per gallon, and the crack spread.
- The trades – The kinds of trade, one swap read slowly, its payment profile, and a physical deal.
- Position and value – Long and short, mark-to-market, and how risk is measured.
- 102Who does whatThe front, middle and back office of a commodity trading firm, the hand-offs between them, and how IT supports each.Natural GasPowerCrude Oil
What you'll learn
- Three offices and IT – The four groups, the map's lanes, and a trade changing hands.
- The front office – The blotter, a ticket's terms and its derived cashflows, the position, and whose prices.
- The middle office – Independence, the nightly valuation, the day's change by trader, risk and limits, the close.
- The back office – Confirms to chase, trades without one, settlement prices, and the month's invoices.
- IT and the offices – Privilege sets as segregation of duties, the firm's rules as hooks, jobs, support, and test copies.
- 111Natural gas from wellhead to burner tipUpstream, midstream and downstream: how gas gets from a well or the Gulf of Mexico through processing, pipelines and storage to the local utility, and which part of that journey a CTRM handles.Natural Gas
What you'll learn
- Three segments – Upstream, midstream and downstream in one line each.
- Upstream – Exploration, drilling and production, onshore and offshore.
- Midstream – Gathering, processing, pipelines, hubs, storage and nominations.
- Downstream – The city gate, the LDC, power plants and the whole chain.
- Where a CTRM fits – The commercial layer across the middle, on MiniCTRM's screens.
- 112Finding your deals: the two blottersThe Natural Gas book on the Deal Blotter and the Desk Blotter: filters and actions on one, counts, search terms, groups, the deal panel, live updates and views on the other, and which to use when.Natural Gas
What you'll learn
- The Deal Blotter – The classic list: quick filters, opening a deal, the row's actions.
- The Desk Blotter – The counts at the top, search terms, groups, the deal panel, live updates and views.
200s · Core 29 lessons
One trade type or one daily process, step by step. Assumes the 100s.
- 201Your first trade: a fixed-for-floating swapSell one month of the NYMEX benchmark at a fixed price on the Swap ticket, then read it three ways: its payment profile, how its floating price is set, and the short it adds to the book's position.Natural GasCrude Oil
What you'll learn
- What a swap is – A fixed price for a floating one, settled in cash, and the producer who sells one to lock in its price.
- Book the swap – Sell, the counterparty and the book, one month, a Daily quantity, the index and its pricing term, the fixed price, Save.
- The Payment Profile – One row per side, volume x days, a sale's signs, what the swap is worth today, and a price for each month.
- Pricing Detail – One Contract Settle fixing, Projected until the contract expires.
- On the Position report – Your swap as a short, and how a hedge nets to flat.
- 211Physical NatGas: trading and schedulingBook the gas, nominate it to the pipeline every way the board offers - back-to-back, bookout, storage, transportation, pools and interconnects - and record what actually flowed.Natural Gas
What you'll learn
- A deal and a gas day – The two sides of a physical deal, and what a scheduler does with it each day.
- Book the purchase at A – The ticket field by field: parties and volume, the delivery point, the price and the save.
- What a save made – The payment profile, and the deal's own ledger of gas days.
- Three more physical deals – A sale at A, and a purchase and a sale at B with the same counterparty.
- The storage contract – MSQ, MDIQ and MDWQ, an Inject leg and a Withdraw leg at B.
- The transportation contract – A From / To pair, MDQ, and fuel as an in-kind loss.
- Pools, interconnects and two more contracts – Two pools and two interconnects on the pipeline, and a contract through each.
- The scheduling board – Retrieve a pipeline's trades for a gas day, read the panels, find your rows among a hundred, hide panels, quick layouts, room on the screen, right-click and the tabs.
- Back-to-Back and Bookout – A purchase against a sale at one point, the dialog's drawing, the Gas Day Flow Map tab and full screen, and the same with one counterparty.
- Into storage, out of storage – An injection on day 2, a withdrawal on day 3, and the inventory between.
- Across the pipeline – A purchase carried to a sale on the transportation contract, fuel off in transit.
- Through two pools – Gas day 5: Physical to Pool, Pool to Pool and Pool to Physical, and which end is which.
- Through the interconnects – Gas day 6: to an interconnect, on to a pool, to the other interconnect and out to a sale.
- Interconnect to interconnect – Gas day 7: from one interconnect to the other, the two activities left, and finding nominations in the strip and on the map.
- What the nominations did – The NatGas Nominations record, cancelling, CSV, and a nomination drawn - hidden or resized.
- What actually flowed – The BAV ladder, an actual typed on a nomination in NatGas Allocation, and the profile that follows it.
- Back on the ticket – Nominated, Available, Actual and BAV, day by day, on the purchase.
- 212NatGas scheduling: presenter editionStraight to the scheduling board with the deals already booked - back-to-back, bookout, storage, transport and the actual - for showing it to someone.Natural Gas
What you'll learn
- The scheduling board – The book's deals on Pipeline XYZ, retrieved for a gas day, the panels, Panels, quick layouts, room on the screen and the tabs.
- Back-to-Back and Bookout – A purchase against a sale at one point, the dialog's drawing, the Gas Day Flow Map tab, and the same with one counterparty.
- Into storage, out of storage – An injection on day 2, a withdrawal on day 3, and the inventory between.
- Across the pipeline – A purchase carried to a sale on the transportation contract, fuel off in transit, and the map full screen.
- The record and what flowed – NatGas Nominations and its drawing, an actual typed on a nomination in NatGas Allocation, and the deal's daily volumes.
- 213Physical NatGas: pools and interconnectsPut a purchase through a pool and across an interconnect onto a second pipeline, and read the balance each nomination leaves - on the board, day by day, and from a script.Natural Gas
What you'll learn
- Two kinds of location – A pool is a virtual location where deals net; an interconnect is where two pipelines meet.
- The deals – A purchase at C, sales at B and at Z on the other pipeline, and three transportation contracts - one with two pairs.
- The board's fifth panel – Retrieve gas day 1 and read Pools & Interconnects: In, Out, Net and Balance, all zero.
- Into the pool – Physical to Pool via Transportation: 10,000 in, 200 fuel, 9,800 in the pool - and a warning.
- Out of the pool – Pool to Physical via Transportation: 9,800 to the sale, and the pool nets to zero.
- To the interconnect – Gas day 2: 5,000 from the purchase to the interconnect, 4,850 after fuel.
- From it, on the other pipeline – Pipeline XYZ's board, the same row, 4,850 taken to the sale: scheduled from C to Z.
- The balance, day by day – Pool & Interconnect Balances: the month, both halves of the crossing, the pool, and a replay that changes nothing.
- 214Physical NatGas: imbalancesLeave gas with the pipeline on purpose - Allow imbalance on a transport nomination - and read it on the board, on the NatGas Imbalances tab, under the pipeline's rule and in the Portfolio Valuation.Natural Gas
What you'll learn
- The deals – A purchase of 10,000 at C, a sale of 9,750 at B, and a transportation contract at 2 percent fuel.
- The balanced way – Gas day 1: 10,000 received, 200 fuel, 9,800 to a sale of 9,750 - over-nominated by 50; then cancelled.
- Allow imbalance – The same nomination with the tick: the sale at 9,750, 50 a day left with the pipeline, due shipper.
- NatGas Imbalances – The month by book, life to date, the price and the value, and the days.
- Carry forward or cash out – The pipeline's rule switched to Cash out and back.
- The valuation – The position under Demo Desk in the Portfolio Valuation.
- 215Interbook trades: fixing a sale's price with the hedge deskSell gas to a customer at the Gas Daily index, then sell the hedge desk a swap on the same index between two of our own books, and read the offset, the position and the value each book is left with.Natural Gas
What you'll learn
- Trading with ourselves – Books for desks, and why the marketing desk hands the index price to the hedge desk.
- Two books and a counterparty that is us – Demo Desk and Hedge Book, and the counterparty Mini, which stands for our own company.
- Sell gas at the index – A month of gas sold to an outside customer at Transco Zone 6 NY, priced at the Gas Daily index.
- The interbook swap – Sell the hedge desk a swap on the same index, against Mini with Hedge Book as the External Portfolio, and save the pair.
- The offset – The hedge desk's side, locked, and why the original drives it.
- On the Position report – Each deal's floating lines, and who holds the index now.
- In the Portfolio Valuation – The two books' swaps, equal and opposite.
- What a trade inside the firm skips – No confirm, no invoice, no credit, and hooks on the original only.
- 216Physical LNG, hands onRead a cargo bought FOB at 115% of Henry Hub and sold DES on JKM, book a cargo of your own priced around its NOR, and record its arrival, its ship, and the MMBtu loaded and discharged with the boil-off between.Natural Gas
What you'll learn
- The book's LNG – A cargo bought FOB Sabine Pass at 115% of Henry Hub plus 2.50, the same cargo sold DES Tokyo Bay on JKM, the ports and the JKM curve.
- A cargo of your own – 3,500,000 MMBtu sold DES Incheon, marked at JKM, priced 2-1-2 around its NOR plus 0.40.
- What operations record – The NOR that moves the window and makes the price final, the ship, and the MMBtu loaded and discharged, with the boil-off between.
- 217Gas in storage: valuing the inventoryWhy gas in the ground needs a value, the Storage deal's valuation method compared side by side, the facility's storage prices, the book-wide what-if and WACOG's walk.Natural Gas
What you'll learn
- The Storage deal – Transco WSS-3001: 1,500,000 MMBtu held, 600,000 planned out; its method, and every method on the Compare panel.
- Storage prices – The facility's own marks on Settlement Prices -> Storage: a spot price and two months, and the fallback to the curve.
- The book-wide what-if – Price the book, value every Storage deal at Next Month, read the impact - and why nothing moved.
- WACOG – The weighted average cost: how injections average in and withdrawals leave, and the walk on the Inventory Cost panel.
- 218Pipeline rates and fuelA natural gas pipeline's tariff as dated rates: which rate applies to a movement and why, fuel by zone and season, the book's contract against the tariff, and a pipeline that offers its rates as defaults.Natural Gas
What you'll learn
- The rates – Transco's rates in effect today, and the rule that picks one.
- The matrix – Fuel by zone pair, summer and winter.
- Path Lookup – Station 165 to Zone 6 N.Y. on FT: every charge, and why it won.
- Deals and nominations – Tariff Check, the defaults a pipeline can offer, and keeping a tariff current.
- 219Natural gas reportsThe built-in reports on the Natural Gas book: the day's trades and confirms, legs and futures, the index position, the gas by location and day, the book's value from a stored run or live, and the deals behind every number.Natural Gas
What you'll learn
- The day's trades – Trades Done Today, Trades Without Confirms, By Deal By Side and Futures Listing.
- Position / Exposure – How long the book is on Henry Hub by month, and the deal lines behind a month.
- Physical NatGas Position – Gas by pipeline, zone, location and day, its layouts, and the legs behind any cell.
- Portfolio Valuation – A stored run at once, Group by, the deals behind a number, the chart, Compare with, and live pricing.
- Settlement prices – Every price that printed this month, across indexes and sources.
- 221Physical Power: reference data and tradingBuild a power region, control area and hub, book a 7x24 purchase there and read its Peak and Off-Peak hours, give the region a grid of its own, see a Financial Power swap count by it and price its Peak and Off-Peak hours apart, and watch an Off-Peak deal gain or lose the clock-change hour.Power
What you'll learn
- Power's geography – Region, Control Area and Location, the power twin of Pipeline, Zone and Location.
- A Power Region – The seeded regions, a region of your own, and why its time zone is a fixed one.
- A Control Area – A balancing authority under your region, added from the region's row.
- A Power Location – The hub you trade at, and the valuation curve it is marked at.
- Peak and Off-Peak – The band grid that says which hours are Peak, and how it differs from the delivery pattern.
- Book a 7x24 deal – Parties and book, next month, the pattern and the MW, the geography and the price.
- Power Details – The month split into Peak and Off-Peak hours, MWh and payment, each band at its own curve.
- Save it – The saved deal and its stored band rows.
- A grid of its own – The region's own band grid: Peak gives weekday HE22 to Off-Peak.
- Financial Power – A 7x24 swap on the same curve, taking its Hour Region from the curve, split by the default grid and then by your region's, its Peak and Off-Peak hours at fixed prices of their own.
- A clock-change month – An Off-Peak deal in EPT gains or loses the 2 a.m. hour; in EST it doesn't.
- 231Physical Crude and Refined ProductsBook crude oil and refined products ratably and in parcels - on a pipeline and by ship - and record the B/L date, the B/L quantity and the vessel.Crude Oil
What you'll learn
- The whole barrel – One trade type for crude and refined products, and Ratable against Parcel.
- Ratable crude into Cushing – The ticket field by field: 5,000 barrels a day, Seaway at Cushing, WTI's month plus 0.25.
- What a save made – The payment profile's month rows.
- Ratable gasoline on Colonial – Refined Products on the same ticket, barrels priced per gallon, and the desk-limit hook's limit in each unit.
- A pipeline parcel – 100,000 barrels of WTI Midland into ECHO: grade, tolerance, 2-1-2 around the B/L, paid 30 days after it.
- What the parcel made – One row across its dates, the provisional price and its five quotes.
- What operations record – The actual B/L date and the B/L quantity, as operational events: Final, and settled on what loaded.
- A fuel oil cargo by ship – 40,000 MT FOB Houston for Rotterdam, priced per barrel at the product's typical 6.35 a ton, its specs, and its ship.
- The book – Four deals, one trade type, and the Commodity each takes from its curve.
- 232Moving oil: cycle pipeline, barge, rail, truck and in-tankCrude oil and refined products by every mode of transport - a gasoline batch on Colonial, a diesel barge, crude by rail and by truck, an in-tank sale at Cushing - and what scheduling them means: the terms, the craft nominated and the events recorded.Crude Oil
What you'll learn
- Six modes, and what scheduling means – Transport as a term of the leg, the delivering point's curve, and what MiniCTRM schedules.
- A batch on a cycle pipeline – 75,000 barrels of CBOB 87 at Linden on Colonial, cycle 45, grade code A3.
- A barge on the river – 25,000 barrels of ULSD FOB St. Louis for Baton Rouge, and the barge nominated.
- Crude by rail – 70,000 barrels of Bakken DAP Albany by BNSF, and the loading recorded.
- Crude by truck – 1,500 barrels a day off a Permian lease, and the terminals list.
- In the tank – 50,000 barrels sold at Cushing, and the transfer recorded.
- The flow – Five movements on the blotter, and what happens outside MiniCTRM.
- 241Physical Metals: lots, loco swaps and declarationsBook a gold lot at the PM fix plus a premium, a copper lot over its quotational period, and a loco swap - the same metal received in one place and delivered in another for a differential - then declare the rest of a seasoned lot at the day's print.Metals
What you'll learn
- The Metals book – The book's lots, its loco swap and the financial twins, the three metals masters, and the thirteen curves.
- A gold lot at the fix – 1,000 ounces of kilobars loco Zurich, priced at the PM fix of the first delivery day plus 50 cents.
- What a save made – One row in fine ounces with the premium on it, and its one fixing in Pricing Detail.
- A copper lot over its quotational period – 500 tons of cathode sold in warehouse Rotterdam, priced over M+1 off the month of shipment plus 120 a ton.
- A loco swap – 2,000 ounces received loco Zurich and delivered loco London on one day for a differential of 35 cents, and the three rows it makes.
- A pricing declaration – The seasoned gold lot's Fixings tab: the 500 ounces the book left undeclared, declared at the day's print, and the whole lot Fixed.
- 242Financial Metals: swaps and fixingsBook a copper monthly-average swap and a gold fixing in kilograms priced per ounce, declare part of the fixing at the day's print and the rest after it until the row is Fixed for good, then book a copper calendar spread on the multi-leg ticket.Metals
What you'll learn
- What a financial metals trade is – The book's two financial twins, why Metals has a financial ticket of its own, and the metal that fills the ticket.
- A copper monthly-average swap – 100 tons a month sold over the next quarter at LME Cash against 9,500 a ton, and its three rows per leg.
- A gold fixing in kilograms priced per ounce – 1,000 KG bought at the PM fix of a day last week against 2,400 an ounce: one row of 32,150.7466 TOZ, already Fixed.
- Declaring part of a fixing – The Fixings tab: 12,000 ounces declared at the day's print while the rest average the window, then the remainder, and the row Fixed.
- A calendar spread on the multi-leg ticket – Copper on two legs in one deal: the first quarter's average bought at 9,450, the next quarter's sold at 9,520, three rows a side, and declarations that bind to their leg.
- 243Metal leases, hands onRead the gold lease rates and the tenor a lease reads them at, borrow gold for three months at the rate they give and read the metal in and back out with one interest row, then lend gold at a typed rate with the interest paid in metal every month.Metals
What you'll learn
- A lease rate – What a lease rate is, the sample gold curve, and the tenor a lease reads it at.
- Borrow gold, the rate left blank – 5,000 ounces borrowed from the refiner for three months at the rate the lease-rate curve gives: the metal in and back out at the curve, and one interest row at the fix on maturity.
- Lend gold, the interest in metal – 2,000 ounces lent to a trading house at a typed 0.75 %, the interest paid in metal every month: the metal out and back the other way round and three interest rows, all on the Metal side.
- 244Callable metal leases, hands onRead a jeweler's gold call lease facility, its mid-month rate reset and last month's three-panel statement, then book a facility of your own, draw on it, hand some back the same day, reset its rate, and see how a lease with no maturity is marked.Metals
What you'll learn
- A credit card in metal – A facility with no maturity, the movements under it, and interest on each day's balance.
- The jeweler's facility – The sample book's gold facility lent to Marlowe Jewelry Works: its terms, a month of draws, returns and a buy-down, and a mid-month rate reset.
- Last month's statement – Daily Balances, Metal Movements and Cash Movements: what the month's one invoice prints.
- A facility of your own – Gold lent on call to a trading house at a typed rate, 1,000 ounces drawn and 400 handed back the same day, and a new rate from next month.
- The mark – How a facility with no maturity is valued: the assumed return, days after the valuation date or a month end.
- 251FX trading: a USD/CAD spot tradeRead the CAD spot and the close a ticket checks against, buy 1,000,000 US dollars for Canadian dollars at the market - after seeing the warning an off-market amount raises - settle it T+1, and read its two payments, its value in dollars and what a move in the rate does.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- The market rate – A currency pair, the USD/CAD spot on FX Rates, and the close the ticket checks against.
- Book the trade – Buy 1,000,000 USD for CAD in the Demo Desk, an off-market amount and its warning, the market amount, T+1 settlement, Save.
- What a save made – USD received, CAD paid and its Payment (USD), and the trade on the Deal Blotter.
- When the rate moves – What a weaker or stronger Canadian dollar does to the trade, and what is left once it settles.
- 252Futures: contract codes, months and lotsRead the NG and WTI contract codes and their expiry date sequences, then book futures the way the exchange lists them: a listed contract month, and whole lots of a fixed size.Natural GasCrude Oil
What you'll learn
- Contract codes and expiry – NG and CL, the size of one lot, and each contract month's last trading day by the exchange's rule.
- Buy NG – A listed contract month, ten whole lots, the Total Quantity and the Payment Profile.
- Sell WTI – The same ten lots of crude: another size, another expiry.
- Futures Listing – Every live future with its settlement date.
- 253Exchange-traded options: book, exercise and reverseRead the NYMEX ON and LNE option codes and their months, buy ten ON calls, find the premium among the fees, exercise three lots into NG futures, and reverse the exercise.Natural Gas
What you'll learn
- Option contract codes – ON and LNE, the future each is on, and each option month's future and expiry.
- Buy ON calls – The code and month, what the code decides, ten lots at a strike for a premium, and the open lots.
- The premium – The premium as a fee on Fee Payments, never a profile row.
- Exercise – Three of ten lots exercised into the future, and the in-the-money helper.
- The future it booked – The NG future at the strike, locked to its exercise.
- Reverse – Un-exercise a mistake: the future cancelled, all ten lots open again.
- 254Options: OTC, collars and exchange-tradedBuy an OTC call on NG_NYMEX and read its profile, pricer and premium; book a zero-cost collar on the Multi-Leg Option ticket and see its Structure warning; then buy five LNE puts on NYMEX.Natural Gas
What you'll learn
- What an option is – A right, not an obligation; calls and puts; over the counter or listed.
- A Commodity Option – Buy an OTC call on NG_NYMEX: strike, premium, the Option Pricer, the profile row and the premium fee.
- A collar – A zero-cost collar on the Multi-Leg Option ticket: two legs, a premium each, the Structure warning, a row per leg.
- An exchange-traded option – Five LNE puts on NYMEX: a listed code and month in lots, settled to cash when exercised.
- 255Treasury: the cash ladder, a loan and FXRead the book's cash by currency on the Cash Ladder - by tenor and by month, known and projected, cell by cell - then close a funding gap by borrowing 20,000,000 US dollars on a Loan and meet a Canadian dollar need with an FX trade, and watch each land on the ladder.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- The Cash Ladder – Every payment still to come by currency: tenors and months, known and projected, a cell's cash flows, one entity's cash.
- Borrow to close a gap – Book a 20,000,000 USD Loan at a fixed 4.5 % for two months, read its interest and principal legs, see it on the ladder.
- Cash in the wrong currency – Sell US dollars for Canadian dollars on an FX trade and see each currency's cash on the ladder.
- 261End of dayFor the middle and back office: today's settlement price, a reprice and a fixing, the close, the end-of-day valuation and the day's change.Natural GasPowerCrude Oil
What you'll learn
- When the trading day ends – The System Date, and the order the end-of-day work goes in.
- What has not fixed yet – A seasoned deal's floating leg, with today still on the curve.
- Today's settlement prices – Enter today's print, reprice the deals that read it, check nothing is missing.
- Watch it fix – The same deal after the reprice: today's fixing on your print.
- Close the market – Current and closing, one close for every curve, and what its warnings say.
- The end-of-day valuation – A CLOSING definition of your own, a run on today's close, and how to read it.
- Check the day – Today's value against yesterday's, split into seven reasons.
- Every night, on its own – The nightly job set that does most of this, and what it cannot; on the gas book, five jobs at the same time.
- Roll the date – Where the System Date moves, and why it moves last.
- When the day does not close cleanly – A missing print, and a run with no close to read.
- 262Counterparty credit riskWhat each counterparty owes us if it failed today: a credit line set of your own, a credit group, a Net and a Gross line, and a breach.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- What credit risk is – What a counterparty owes us, read live off the mark-to-market and never changing it.
- What describes a counterparty – Party ratings, master agreements and the Credit section.
- A credit line set – How sets carve credit up, and a set of your own.
- A credit group – Two counterparties that are one legal entity, sharing one line.
- Two credit lines – A Gross line on the group and a Net line on the third counterparty.
- Reading the lines – Your set on Credit Exposure: the tiles, a line's columns, Net against Gross and the statuses.
- A breach – The group's limit squeezed until it breaches, and why nothing is blocked.
- 263Option Greeks: delta, gamma, vega and thetaWhat a call and a put are, then the Greeks read off the NatGas book's own options - the Option Pricer on two OTC and two exchange-traded options, the book's delta, gamma and vega on Sensitivities, theta on P&L Explain.Natural Gas
What you'll learn
- What an option is – Calls and puts, buyers and sellers, intrinsic and time value, and the Greeks as dials.
- A winter call – The book's OTC call: its terms, its premium, and the Option Pricer's inputs and value.
- Delta – How much an option moves with gas, on the winter call and on a put the desk sold.
- Exchange-traded options – The same Greeks per lot on the ON call and the LNE put, and what exercise did to delta.
- The book's Greeks – Delta, gamma and vega for every deal on Sensitivities, grouped by deal type.
- Theta – Time value melting, and every Greek in one day's P&L on P&L Explain.
- Hedging the delta – An option counted at its delta on the Position report.
- 264Daily P&L: what changed and whyRead the book's value, take yesterday's end of day against today's apart, then book, amend and cancel swaps of your own between two runs and see each land in its own box - and P&L Explain's lines beyond the Greeks.Natural GasCrude Oil
What you'll learn
- Level, change, explanation – Portfolio Valuation's level, and the two screens that take a change apart.
- Yesterday against today – The sample book's end of day: today's trades as New, and the market move on the rest.
- A book of your own – Your own definition, two swaps that net, and run 1.
- Change the book – Amend one swap, book a third, cancel the other.
- Run 2, and the boxes – One deal in each of New, Amended and Rolled off, and a market move of nothing.
- P&L Explain – The lines beyond the Greeks, and the tie to Valuation Change.
- 271Confirm to invoiceFor the back office: a trade's confirm, the payment that fixed, the month's invoice issued, the lock it puts on the trade, and a void.Natural GasPowerCrude Oil
What you'll learn
- The confirm – The chase list, the Confirms blotter, and the trade's confirm taken to Confirmed.
- The payment – Last month's row, fixed and final, and which month's invoice bills it.
- The invoice – The month's worklist, a draft, what it picked up, and issuing it.
- The lock – The ticket's banner, a change the invoice refuses, and leaving it unsaved.
- Void and correct – Void the invoice, save the change, and the month ready to invoice again.
- 272Accounting: rules, the evening run and balancesFor the back office: the sub-ledger's accounts and rules, a rule tested, the posting run made again, a posting explained, the daily reversal, and the balances that agree.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- Accounts and rules – The chart of accounts, a rule in plain words, Test rule, and the cash rule.
- The evening run – The load's two runs, and the System Date's run made again.
- Postings – A day's postings, one explained, and the reversals that keep a balance today's value.
- Balances – Balances, the trial balance, and the exceptions list.
- 291Physical Agriculturals: lots, ratios and basisSell cocoa butter at a flat price marked at a ratio to cocoa futures, hedge it in ICE cocoa, sell corn at a basis over a named CBOT month, and declare part of the corn at a day's print.Agriculturals
What you'll learn
- The Agriculturals book – The book's lots and hedges, the two masters, the futures that list only some months, and the fourteen curves.
- A cocoa butter lot at a ratio – 50 tons sold DAP Amsterdam at a flat 21,600, marked at 2.60 x the cocoa month it is quoted against.
- The hedge – 13 ICE cocoa futures on the Future ticket, and the Position report netting them against the butter.
- A corn basis contract – 100,000 bushels FOB the US Gulf at 55 cents over a named corn month, priced from two weeks ago, and its fixings on that month.
- A pricing declaration – 40,000 of your corn's bushels declared at a day's print, and the rest averaged.
300s · Advanced 6 lessons
A deeper model - curves built from rates, risk measures - that assumes the 200s.
- 311Physical NatGas: price formulasPrice a gas purchase by your own formula over its items - a floor, a volume discount, a rule by date - on the classic and the multi-leg ticket.Natural Gas
What you'll learn
- When one index is not the price – The contract clauses a formula is for.
- From an index to an average – Float on NYMEX, Single index to Average, the Price Formula tab and item codes, a fixed item.
- Writing a formula – Average to Formula, a floor, the check and its errors, what a formula may use.
- What a formula can see – VOLUME and the other trade variables; dates as numbers.
- Save and read the price – The Payment Profile's price and Pricing Detail's account of it.
- One formula per leg – The multi-leg ticket's per-leg sub-tabs.
- 341Metals forward curves: lease rates, implied forwards and LME promptsRead the gold lease rates and the forward curve built from them, the PM fix spot and a dollar funding curve, work one month of its arithmetic, rebuild it, and book a gold swap priced off it; then buy LME copper for 3M and borrow it from Cash to 3M on a carry.Metals
What you'll learn
- Lease rates – What a lease rate is, the sample gold curve's tenors and rates, and the curve that reads it.
- A curve built from rates – XAU_FWD_RATES on Projection Index and Prices: its inputs, its read-only strip, one month worked, Rebuild, and the typed PM fix beside it.
- A swap priced off it – A gold monthly-average swap over the next quarter on XAU_FWD_RATES, and its rows at the implied curve's months.
- An LME 3M forward and a carry – LME_CU on New Future: a Prompt Date in place of the month, 10 lots bought for 3M with one row per side on the prompt and its price interpolated between two third Wednesdays, then a carry borrowing 4 lots from Cash to 3M at a 22.50 contango and its four rows.
- 351Interest Rate Swaps: yield curves and forward ratesBootstrap the USD OIS discount curve from deposits and swaps, see what one quote does to its forwards, book a two-year pay-fixed swap on it, and work its first float rate out from two discount factors.Natural GasPowerCrude Oil
What you'll learn
- The curve – The USD OIS curve: its recipe and the deposits and swaps it is built from.
- Build it – Preview the bootstrap, its pillars, repricing and forwards, a what-if on the 2Y quote, then Build.
- Book the swap – Pay fixed for two years on 10 million, floating on the curve you built.
- The float rates – Eight projected rows, the forward-rate formula, Pricing Detail, and the first row worked out by hand.
- When the curve moves – Rebuilds, closes, and a period that has already begun.
- 361Value at RiskFrom a year of closes to a VaR you can defend: a definition of your own, a run, every tab, a limit, a backtest and one failure.Natural GasPowerCrude Oil
What you'll learn
- The question VaR answers – What a 1-day 95% VaR is, read off the sample book's own run.
- History first – The daily closes historical simulation replays, and where they come from.
- A definition is a recipe – Every setting of a VaR definition, and a copy of the seeded one in your name.
- Run it – Run your definition on today's book and read the run's header.
- Read the headline – The VaR and ES tiles, the model check and the risk classes.
- The distribution and the tail – Every scenario day's P&L, and the worst days with what moved.
- Who carries the risk – Standalone and component figures by portfolio, commodity or trader.
- Can you trust the inputs – History quality per factor, and what each warning asks of you.
- A number nobody acts on – A VaR limit of your own, checked on the Risk Dashboard.
- Did the model hold – A closing twin, a five-week backfill, and the backtest's statistics.
- When it goes wrong – A run that fails, why, and what to do about it.
- 362Option value: strike, time and volatilityRead the volatility strip, build a call on the Option ticket and watch the pricer as its strike and month move, then see the month settle on the print.Natural GasCrude Oil
What you'll learn
- What makes the price – Intrinsic and time value, and the five numbers Black-76 turns into them.
- The volatility strip – One implied volatility per month, higher near the front, read and never saved.
- A call at the money – A one-month call on the benchmark, and what the Option Pricer says about it.
- In and out of the money – The strike moved below and above the forward: intrinsic, time value and Delta.
- Time – The same call six months later, time decay, and the call saved.
- Expiry – One fixing on the expiry, and a month settled in cash on the print.
- 371Month-end close: late changes and who caused themFor the accountants: a late change followed to who made it and what it moved, the books reconciled, the P&L tied out, and a month closed with its close pack.Natural GasPowerCrude Oil
What you'll learn
- A late change – The hero trade copied with yesterday's trade date, and the evening run that takes it in.
- Who caused it – Late Changes, the summary sent back up, and the change marked reviewed.
- Why it moved – Accounting Change Explain on 1300, from yesterday to today.
- Reconcile and tie out – The four reconciliations, and the accounting P&L tied out to the desk's.
- Close the month – The checklist, the month closed with a note, and its close pack.
400s · Under the hood 14 lessons
For developers and IT: the tables, the SQL, scripts and storage behind the screens.
- 401The deal model in SQLFor a developer who reads deals with SQL: deal, deal_side and deal_payment_profile, the tables they point at, and the mistakes that give a plausible wrong answer.Natural GasPowerCrude Oil
What you'll learn
- The map – The three tables on the Data Model diagram, their grain, and the SQL Query screen.
- The deal table – One row per trade: its schema, your deal's row, the ticket beside it, and dates stored as text.
- Foreign keys – Ids, not names: joining to counterparty and the rest, and the deal a JOIN loses.
- The deal_side table – One row per leg: the legs, what the floating leg floats on, and the key to use.
- The payment profile – One row per leg per period: the cash flows, their signs, the currency, and net cash by date.
- The tables around them – Type headers, physical delivery points, fees and derived tables.
- The mistakes – A sum counted once per joined row, and the checklist before you trust a query.
- 402About MiniCTRM, part 1: the front endHelp → About's Front End section, library by library, each shown at work on a screen: React, MUI, AG Grid, React Flow and dagre, html-to-image, CodeMirror and more.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- Help → About – Open About; the General section; the two halves; the Front End list; Copy.
- The page itself – React, React DOM, TypeScript, Vite and React Router.
- How it looks – MUI, MUI Icons and Emotion - Dark Mode, on and off, and the two layouts, Compact and Comfortable.
- Dates – Day.js and the MUI X date pickers, on the System Date and a ticket.
- Grids – AG Grid and AG Grid React on the Deal Blotter.
- Data from the server – TanStack Query: fetched once, kept, and kept live.
- Diagrams – React Flow and dagre on the Data Model, Curve Hierarchy and the Day in the Life map; html-to-image on the Gas Day Flow Map.
- Code editors – CodeMirror and its Java and Python language packages; the Formula box.
- Tests – Vitest, Testing Library and Playwright - and the screenshot deck.
- 403About MiniCTRM, part 2: the back endHelp → About's Back End section, shown at work: Spring, SQLite and Flyway in SQL Query, PostgreSQL from the same JAR, EvalEx checking a price formula, the document libraries, the ICE trade feed's FIX engine, and Python with Py4J.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- Help → About – The Back End section, and the General rows the server answers.
- The server – Java, Spring Boot and Spring, Tomcat, Jackson, springdoc-openapi, Hibernate Validator and Maven.
- The database – SQLite and its driver, Flyway's history in SQL Query, Hibernate and Spring Data JPA, and PostgreSQL with its driver and BCrypt.
- Price formulas – EvalEx checks a Formula as you type, and evaluates it for every row.
- Files and documents – commonmark-java, OpenCSV, OpenHTMLtoPDF and PDFBox, Apache POI and Jakarta Mail.
- The ICE trade feed – QuickFIX/J and Apache MINA: the FIX session trades from ICE arrive over.
- Python – A Python sample run across the Py4J bridge, and the Health Check.
- 404Intro to SQLFor someone new to SQL: every word MiniCTRM's queries use, one at a time, each run on the sample book - and how other databases spell some of them.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- Asking for rows – SELECT, FROM, the star, AS and DISTINCT.
- Choosing rows – WHERE, AND and the comparisons, IN, BETWEEN, and NULL.
- Sorting – ORDER BY and DESC.
- Counting and adding up – COUNT, GROUP BY, SUM, ROUND and arithmetic.
- Joining tables – JOIN and ON, LEFT JOIN, and COALESCE.
- Shaping the answer – CASE, CAST and LENGTH.
- Bigger queries – WITH, UNION ALL, WITH RECURSIVE, OVER, and a script's question mark.
- SQLite's own words – date, strftime, julianday, typeof, sqlite_version and pragma_foreign_key_list.
- Other databases – Standard SQL and dialects: SQLite, PostgreSQL and Microsoft SQL Server.
- 411NatGas deals in SQLFor a developer who reads physical gas with SQL: physical, multi-leg, storage and transportation deals, and the traded, misc. and available volume tables beside them.Natural Gas
What you'll learn
- The map – The gas tables on the Data Model diagram, and the five Transco deals.
- A physical deal – Its physical and financial sides, and the pipeline, zone and location it delivers at.
- Multi-leg deals – More sides on the same trade type, legs with their own dates, and how SQL tells the two apart.
- Storage and transportation – A contract's header, MDIQ and MDWQ, a transport pair and its fuel, and the transaction types.
- Traded volume – The ledger beside the profile, its runs of days, and a day typed by hand.
- Misc. and available – A misc. reduction, what is left to nominate, and the ticket's Daily Volumes tab.
- The mistakes – A total counted three times, and the checklist before you trust a gas query.
- 412NatGas scheduling in SQLFor a developer who reads physical gas with SQL: nominations, storage and transport, and the scheduled, allocated and actual volumes that become BAV.Natural Gas
What you'll learn
- The map – Nominations on the Data Model diagram, and what a nomination row holds.
- Nominations – The book's nominations, their contract types and their two ends.
- The deals on a nomination – Deal sides, roles and shares, totals over days, and the scheduling board.
- Storage – Injections and withdrawals, and an inventory worked out day by day.
- Transportation – A transport nomination's fuel, and why it balances.
- The imbalance ledger – What a nomination saved with Allow imbalance leaves with the pipeline, per book and month, and the pipeline's rule.
- Cancelled nominations – Why every total filters on status.
- Actuals and BAV – Scheduled, allocated and actual by gas day, the BAV ladder by hand and from the BAV tables, and the profile it prices.
- The mistakes – The checklist before you trust a scheduling query.
- 461Valuation runs and storageFor a developer or operations person: where a valuation run is stored, which row is which day, the compressed payload and the relational extract, and how runs are kept and deleted.Natural GasPowerCrude Oil
What you'll learn
- A run, and a rerun – A definition of your own, a run, its header and its detail, and a rerun that turns the first Stale.
- In SQL – One header row per run, one payload per run, and the relational tables empty.
- Valuation Storage – Extract your runs, query them by portfolio, purge the rows, and how long runs are kept.
- Deleting runs – Your stale run deleted, and why deleting by status is history lost.
- From code – valuations() in a script, and the one door in the application.
- 462Watching a valuation runFor a developer or operations person: a valuation run on the Valuation Monitor - the book in chunks, the workers side by side, the pace, the five steps - replayed, and why it is built that way.Natural GasPowerCrude Oil
What you'll learn
- A run to watch – A definition of your own, the monitor, and a run started from it.
- Reading the screen – The ring and its numbers, the five steps, a lane a worker, a tile a chunk and its deals, the throughput.
- Replay – The run played again from its own times, at any speed.
- Why it is built this way – Chunks on read-only workers, one short write, and what a bigger book changes.
- 481Scripting with JavaFrom an empty project to the book on screen: Hello World, Compile, Run, the log, a query shown as tables, and two scripts that go wrong.Natural GasPowerCrude Oil
What you'll learn
- What a script is – Projects and scripts, and what a script can use.
- Your first script – A project of your own and Hello World, line by line.
- Compile and run – Compile, Run, the run page and its log.
- Change it – A greeting that uses the API, run again.
- Ask the book – A query of the sample book, shown as tables, and Run history.
- When it goes wrong – A script that will not compile, and one that fails when it runs.
- 482Extending MiniCTRMUsing, configuring and extending the system: scripts, Custom Tables, Custom Fields, ticket layouts and Activity Hooks.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- Use, configure, extend – Using is not customizing; configuration versus extension; Job Automation as the judgment call.
- Configuration – Counterparties, curves and commodities, System Settings, User Preferences, and job sets.
- Scripting – Your own code in Java or Python against the public Scripting API.
- Custom Tables – A ctrm_ table of your own: its CREATE shown as you type, then cancelled.
- Custom Fields – A real column on a deal, a leg or a counterparty, and everywhere it then appears.
- Ticket layouts – Settings → Ticket Layouts, a new layout started and cancelled, and the ticket's Layout button.
- Activity Hooks – The firm's own rules in the deal's save, a field hook's rule on one field, and message hooks as the last resort.
- 483Intro to JavaThe Java MiniCTRM's scripts use, for someone who already programs: projects, packages, imports, methods, types, loops and one script of your own.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- Projects and packages – What compiles together, and where a class lives.
- Imports and the class – The import section, extending CtrmScript, and methods.
- Types and collections – The data types the Samples use, and lists and maps.
- Loops and decisions – Looping through a list, counting through a table, if and else, SQL in a text block.
- Your own script – A project referencing Samples, Basics written and run, and autocomplete.
- 484Intro to PythonThe Python MiniCTRM's scripts use, for a Java or .NET developer: modules, imports, self, lists, tuples and dicts, loops and one module of your own.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- Modules and imports – Projects, packages and modules, and how one imports another.
- Classes and functions – Indentation, extending CtrmScript, self, and plain functions.
- Types and collections – Values without declared types; lists, tuples and dicts; slicing.
- Loops and decisions – for ... in, range, if and elif, a list in one line, and errors.
- Your own module – A project referencing Samples (Python), basics written and run, and autocomplete.
- 485Watching worker jobsFor a developer or operations person: one script split into ten worker jobs that run side by side, and the screens that watch them - running, queued and finished.Natural GasPowerCrude Oil
What you'll learn
- One job, many workers – What a worker job is, and Workers at once set to 3.
- Two scripts – A worker that extends WorkerScript, and a main script that hands it ten jobs.
- Watching it run – Jobs running and queued, the Worker pool, jobs finishing, one job's page, and the run done.
- Afterwards – The run history, Workers at once put back, and what Purge removes.
- 486Worker machinesFor a developer or operations person: on a PostgreSQL database, other computers take queued script runs beside the main application - how they start, share the work, and what happens when one stops.Natural GasPowerCrude OilMetalsAgriculturals
What you'll learn
- One computer, or several – Where runs go on a SQLite file and on a PostgreSQL database, and worker jobs set apart.
- Starting a worker – The settings file, the command, and a worker's name and slots.
- Sharing the work – Runs at once for everyone, who takes the next run, Ran on, cancel and files, and job sets.
- When one stops – A silent worker's runs failed and handed on, and a worker that wakes up.
No lessons started yet
Kept only in this browser, on this device. Open a lesson and move past its title slide to start it; reach its last slide and it is done. Reset sets a lesson back to Not started.
Pick up where you left off
100s · Foundations
| No. | Lesson | Status |
|---|---|---|
| 101 | Commodities basics | Not started |
| 102 | Who does what | Not started |
| 111 | Natural gas from wellhead to burner tip | Not started |
| 112 | Finding your deals: the two blotters | Not started |
200s · Core
300s · Advanced
| No. | Lesson | Status |
|---|---|---|
| 311 | Physical NatGas: price formulas | Not started |
| 341 | Metals forward curves: lease rates, implied forwards and LME prompts | Not started |
| 351 | Interest Rate Swaps: yield curves and forward rates | Not started |
| 361 | Value at Risk | Not started |
| 362 | Option value: strike, time and volatility | Not started |
| 371 | Month-end close: late changes and who caused them | Not started |
400s · Under the hood
| No. | Lesson | Status |
|---|---|---|
| 401 | The deal model in SQL | Not started |
| 402 | About MiniCTRM, part 1: the front end | Not started |
| 403 | About MiniCTRM, part 2: the back end | Not started |
| 404 | Intro to SQL | Not started |
| 411 | NatGas deals in SQL | Not started |
| 412 | NatGas scheduling in SQL | Not started |
| 461 | Valuation runs and storage | Not started |
| 462 | Watching a valuation run | Not started |
| 481 | Scripting with Java | Not started |
| 482 | Extending MiniCTRM | Not started |
| 483 | Intro to Java | Not started |
| 484 | Intro to Python | Not started |
| 485 | Watching worker jobs | Not started |
| 486 | Worker machines | Not started |