MiniCTRM
Documentation

Day in the Life of a Trade

How a trade moves through the desk in MiniCTRM: which office does what, at which point in the day, and on which screens. The same map is on the Help menu inside the app.

Rows are the offices and columns the stages of the day. Solid arrows are the trade moving on; dashed arrows are something that shapes the day. Select a box to read about that stage.

Day in the Life of a Trade: the offices as rows, the stages of the day as columns, each stage of a trade's life as a box, and arrows for the trade moving on.PRE-MARKETbefore 09:00TRADING DAY09:00 - 17:00END OF DAYafter the closeMONTH ENDthe days after a delivery monthFront OfficeTraders andoriginators: enteringand managing trades,watching the position.Middle OfficeRisk and productcontrol: market data,valuation, Greeks,stress, VaR, limits.Back OfficeOperations andsettlements:confirmations,fixings, invoicing,cash.IT / OperationsKeeping the deskrunning: automation,integration, users andprivileges.Trade entry: read about it belowTrade entryFront Office32 screensIntraday position: read about it belowIntraday positionFront OfficeMiddle Office12 screensMarket data: read about it belowMarket dataMiddle Office11 screensCounterparty credit: read about it belowCounterparty creditMiddle OfficeBack Office6 screensEnd-of-day valuation: read about it belowEnd-of-day valuationMiddle Office7 screensRisk: read about it belowRiskMiddle Office10 screensEnd-of-day reporting: read about it belowEnd-of-day reportingMiddle OfficeFront Office6 screensConfirmations: read about it belowConfirmationsBack Office2 screensAccounting: read about it belowAccountingBack Office10 screensSettlement prices and fixings: read about it belowSettlement prices and fixingsBack Office2 screensInvoicing: read about it belowInvoicingBack Office2 screensMonth-end close: read about it belowMonth-end closeBack Office4 screensUsers and privileges: read about it belowUsers and privilegesIT / Operations6 screensThe data model: read about it belowThe data modelIT / Operations5 screensIntegration: read about it belowIntegrationIT / Operations2 screensActivity and message hooks: read about it belowActivity and message hooksIT / OperationsFront Office2 screensJob automation: read about it belowJob automationIT / OperationsMiddle Office2 screensScripting in Java and Python: read about it belowScripting in Java and PythonIT / Operations5 screenscurves readybookedOTC tradesclose of businessvalued bookP&L and limitsmonth deliversfinal paymentsruns at 18:00runs at 18:00who may bookMTM exposureroom on the linetables and SQLhook scriptsjob setsCSV / API

Scroll sideways to see the whole map.

Pre-marketbefore 09:00

Market data

Middle Office

Forward curves, spreads off a parent curve, volatilities, FX and rates are loaded or closed before the desk trades. Yesterday's close is kept; a year of closes is what risk measures on.

Screens (11)

  • PricesForward curves per projection index — usually refreshed by EOD batch or CSV import for MTM; not a live trading ladder.
  • CurvesEvery forward curve in one grid with its front-month price, spread and volatility, its last close and print, what uses it and what needs a look.
  • Curve HierarchyForward curves as a tree: which curves are spreads off which (NYMEX -> Inside FERC -> Gas Daily), each curve's parent, and how its all-in price is built from the root's price and each spread.
  • Market HistoryClose the whole market for a business date in one step, see which closes exist (and which are synthetic or stale), generate synthetic history and install the demo market.
  • Close StorageCloses are stored compressed, one row per curve per day: see what is stored and what it saves, extract closes to the relational tables for SQL, purge the copies, and set how long each is kept.
  • VolatilityImplied volatility strips per projection index for commodity option pricing (Black-76).
  • CorrelationsOne correlation per pair of curves, for all months: what a spread option reads beside its two legs' volatilities.
  • FX RatesUSD-base spot FX by currency — current strip and closings by business date for desk snapshots.
  • Yield CurvesDiscount curves bootstrapped from deposits, futures, bonds and par swaps — a daily discount-factor grid, current and closing. Interest Rate Swaps project their float rates from them.
  • Metal lease ratesLease-rate curves per metal, the input a rate-implied forward curve reads.
  • Market completenessPreflight checklist of missing CURRENT or closing forwards, FX, vol and yield curves before Portfolio Valuation.
Back to the map

Users and privileges

IT / Operations

Privilege sets by office - Front, Middle, Back Office, Read Only, Administration - decide which screens a user may open and which they may change.

Screens (6)

  • SecurityPrivilege sets and who holds them: which screens each user may open and which they may change.
  • System SettingsKept in the open database: System Date, gas allocation edits, AI Help, valuation defaults, Contract Settle fixing.
  • System LoggingThe log of system-wide actions nothing else records, with a switch for each kind.
  • User PreferencesYour own settings: user name, date format, appearance, trade-type order, and how the blotter opens a deal.
  • Trade DefaultsDefault headline volumes for new futures, swaps, options, Physical NatGas, and Physical Power deals.
  • PersonnelContacts (name, e-mail, phone) linked to internal parties or counterparties — used on trade confirms.
Back to the map

The data model

IT / Operations

Every table and foreign key of the live database as a diagram, and read-only SQL against it.

Screens (5)

  • Data ModelInteractive diagram of the database tables — deal model first, reference data grouped by domain.
  • SQL QueryRun read-only SELECT queries and inspect table schema.
  • Custom TablesDesign your firm's own database tables (ctrm_ prefix).
  • Custom Table DataAdd and edit rows in your firm's own tables, with CSV import and export.
  • Custom FieldsExtra fields of your own on a deal, on each of its legs, or on a counterparty - name them, pick a data type and a display order, and they appear on the matching screen.
Back to the map

Integration

IT / Operations

CSV in and out, the REST API, the scripting SDK for an IDE, the Eclipse plugin, and an MCP server so an AI assistant can drive the desk.

Screens (2)

  • Import from CSVBulk-load deals from CSV.
  • Export to CSVDownload all deals as CSV.
Back to the map

Trading day09:00 - 17:00

Trade entry

Front Office

A trader books the deal on its ticket: counterparty, term, volume, price - or the trade arrives by itself from ICE. The payment profile - every month's cash flow - is generated the moment it is saved, and activity hooks can warn or refuse.

Screens (32)

  • New SwapRecord a fixed-for-floating commodity swap after it is agreed.
  • New Basis SwapRecord a float-for-float basis swap: two index legs, each with its own spread.
  • New Multi-Leg SwapCommodity swap with more than two sides: a fixed side plus any number of float sides, each with its own volume and spread.
  • New Interest Rate SwapOTC interest rate swap: notional, fixed vs floating rate, per-side yield basis.
  • New OptionOTC commodity option: underlying index, strike, put/call.
  • New Multi-Leg OptionSeveral OTC options as one deal - a collar, a corridor or a custom structure - each leg its own Buy/Sell, Put/Call, strike and premium.
  • New Exchange-Traded OptionAn option on a future (NYMEX ON, LNE): option code and month, put/call, strike, lots and premium; exercises into the future or to cash.
  • New FutureExchange future: contract code and month - or, on an LME code, a prompt date and a carry.
  • New CashStandalone cash flow: amount, currency, date, and type.
  • New FXSpot currency exchange: two opposite cash flows on one settlement date.
  • New LoanBorrow or lend a currency for a term at a fixed or floating rate, with the notional exchanged at both ends.
  • New Physical NatGasPhysical NatGas: pipeline / zone / location + financial leg.
  • New Multi-Leg Physical NatGasPhysical NatGas with multiple location legs (per-leg term, volume, and pricing).
  • New Physical CrudePhysical crude oil or refined products on a pipeline: pipeline / zone / location + financial leg.
  • New Multi-Leg Physical CrudePhysical crude or refined products on a pipeline with multiple location legs (per-leg term, volume, and pricing).
  • New Physical MetalsPhysical precious or base metals: one lot of a metal, brand and form delivered at a vault, warehouse, port or works, priced at its reference curve over a pricing window plus a premium, or at a fixed price.
  • New Financial MetalsFinancial precious or base metals: a fixed-for-floating swap or a single fixing on a metal's reference price - the LBMA fixes, LME Cash - in metal units, cash-settled, no delivery.
  • New Multi-Leg Financial MetalsSeveral financial metals legs on one metal in one deal - a strip with a fixed price per period, a calendar spread, an AM-against-PM fix spread - each leg its own direction, dates, quantity, curve and fixed price.
  • New Metal LeaseMetal lent for a term at a lease rate - gold borrowed from a bank or lent to a jeweller: the metal out on the delivery date and back at maturity, marked at the metal's curve, and interest in dollars at the fix, at a price, or in metal.
  • New Callable Metal LeaseAn open lease facility of metal with no maturity, drawn and returned whenever the borrower likes, with interest on each day's closing balance at the day's fix.
  • New Physical AgriculturalsPhysical softs and ags: one lot of coffee, cocoa or a cocoa product, sugar, cotton, orange juice, corn, soybeans, meal, oil or wheat, marked at its futures month (times a ratio for a product with no futures of its own) and priced flat or at a basis over the futures.
  • New Physical LNGOne LNG cargo by ship, FOB or DES between two ports, marked at the port that delivers it and settled on the MMBtu it delivers.
  • New Physical PowerPhysical power: region / control area / location + financial leg.
  • New Financial PowerOTC financial power swap: float index + fixed price, hourly MW volume, no geography.
  • New StorageNatGas storage contract: physical location(s) and optional Associated Fees.
  • New TransportationNatGas transportation contract: From/To locations, Fuel %, and optional Associated Fees.
  • New Park and LoanNatGas park and loan contract: multi-location path and optional Associated Fees.
  • Deal BlotterFull list: open, copy, or delete any saved deal.
  • Desk BlotterA dense, live, keyboard-first view of the whole book with counts, saved views and a deal panel.
  • Compare DealsRead-only side-by-side comparison of two saved deals and their payment profiles.
  • Deal GroupsLink any deals under one numbered group with a type and a short reference, for your own tracking.
  • ICE Trade FeedTrades done on ICE as they arrive and the deals they booked, with the Message Hospital for any trade that could not book.
Back to the map

Intraday position

Front OfficeMiddle Office

What was done today and where the book stands right now: net volume by month and location, physical gas and power positions, what each power price band delivers on a ticket's Power Details tab, what is still to be nominated - the gas day's nominations drawn as a flow map - and what each pool and interconnect holds.

Screens (12)

  • Trades Done TodayGrid of deals whose Trade Date matches an as-of date (defaults to System Date).
  • Position / ExposureNet floating-price exposure by projection index — long vs short ticket volume across all deals.
  • Physical NatGas PositionSigned volume in MMBtu or GJ by pipeline / zone / location for Active Physical NatGas deals, by day and month or by month alone.
  • Physical Power PositionSigned MWh by region / control area / power location for Active Physical Power deals — daily and forward months.
  • By Deal By SideTwo rows per typical deal — each side with Physical/Financial and Fixed/Float labels.
  • Futures ListingActive futures trades: contract month is the system month or forward (not expired).
  • NatGas NominationsNominate gas to a pipeline: Pathed or Unpathed, the contract, receipt and delivery points, volumes per day and the imbalance.
  • NatGas AllocationScheduled, Allocated and Actual volumes per nomination and gas day, broken down to the deals on it and feeding BAV.
  • NatGas SchedulingWork from trades: retrieve a pipeline's physical deals and contracts for a gas day, see traded / scheduled / remaining, tick rows and create the nomination pre-filled.
  • Gas Day Flow MapA pipeline's active nominations for one gas day drawn as one map, with the day's nominations listed under it.
  • Pool & Interconnect BalancesWhat each pool and interconnect took in, sent out and holds, gas day by gas day, derived only from nominations and replayable from them.
  • NatGas ImbalancesEach pipeline's monthly imbalance by portfolio and strategy - gas left with the pipeline or taken from it by nominations with Allow imbalance - month to date and life to date.
Back to the map

Counterparty credit

Middle OfficeBack Office

How much each counterparty owes us if it failed today: live mark-to-market exposure against credit lines, netted under a master agreement, with ratings and credit groups behind the limits.

Screens (6)

  • Credit ExposureWhat each counterparty owes us against its credit limit, live from the mark-to-market: limit, exposure, available and utilization per credit line, breaches first, with each line's deals and the exposure no line covers.
  • Credit LinesSets of credit limits - one line per counterparty, per counterparty and trade type, or per counterparty and commodity - with warning levels, netting and dates.
  • Credit GroupsCounterparties that are really one legal entity, so they share one credit line in every set.
  • Master AgreementsThe kinds of master agreement a counterparty can trade under, by short and long name.
  • Counterparty AgreementsWhich master agreements each counterparty trades under with each of our internal parties.
  • Party RatingsThe credit team's rating scale (AAA to D, or your own), picked in a counterparty's Credit section. A label only - it never changes a deal's value.
Back to the map

Confirmations

Back Office

Every OTC trade is confirmed with the counterparty: the confirm PDF is generated, sent and marked confirmed when it comes back signed. Trades without one are chased.

Screens (2)

  • Trade ConfirmsGenerate PDF confirmations for OTC trades; track Generated → Sent → Confirmed lifecycle.
  • Trades Without ConfirmsOTC trades still needing a confirm. Bulk-generate confirms or mark trades non-confirmable.
Back to the map

Activity and message hooks

IT / OperationsFront Office

User code that runs when a deal is booked, amended or cancelled - warn, block or edit - or when a trader changes a field it watches, and code that rewrites an API message in flight.

Screens (2)

  • Activity HooksRun a script when a deal is booked, amended or cancelled, or on a request or response: enrich the deal or the message, warn the trader, or refuse it.
  • Message LogDeveloper view of every /api exchange: request and response JSON, before and after any message hook rewrote it. Off until switched on.
Back to the map

End of dayafter the close

End-of-day valuation

Middle Office

The market is closed for the day and the whole book is valued on those closes, delivered metal in inventory with it. Each run is kept, so today's value can be compared with yesterday's and the change explained.

Screens (7)

  • Valuation RunsPersisted valuations of the ACTIVE book by Valuation Definition and date - deal, side and payment rows; reruns supersede, never overwrite.
  • Valuation MonitorWatch a valuation run value the book live, its chunks spread across workers side by side, or replay a recent run.
  • Portfolio Valuation / MTMMark-to-market in USD - each deal's payment profile, fee payments and broker fees still to come, discounted and grouped by counterparty, commodity, portfolio or strategy.
  • Metal InventoryThe metal each book holds by metal and location on any day, summed from the metal ledger and valued at the price rule's curve at spot or cash.
  • Valuation ChangeDay-over-day P&L: the move between two valuation runs, split into new, amended, rolled off and market move, with drill-down to the deals behind it.
  • Valuation DefinitionsNamed ways of valuing the book for Valuation Runs: CURRENT or CLOSING markets, Fee Payments and broker fees in or out.
  • Valuation StorageA valuation run's detail is stored compressed, one payload per run: see what is stored and what it saves, extract runs to the relational tables for SQL, purge the rows, set how long each status's runs are kept, and delete old runs by status.
Back to the map

Risk

Middle Office

How much could the book lose? Greeks by month, stress scenarios, VaR and expected shortfall with a backtest, and limits that turn amber and red on the dashboard.

Screens (10)

  • Risk DashboardThe morning page: limits breaches first with their utilization and trend, net delta by commodity and tenor, the worst stress scenarios and what the runs warn about.
  • SensitivitiesThe book's Greeks: delta, gamma and vega by index and contract month in desk units and energy buckets, key-rate DV01, yield-curve PV01 and FX delta - priced by the valuation engine itself, with a drill-down to why.
  • Stress TestsEvery scenario of a stress definition priced on the whole book in full, by group, with the worst highlighted, the deals behind a cell, and a spot-by-volatility grid.
  • Stress ScenariosThe scenario library: rules by target, series, contract months and move, or a historical replay between two closes; preview on today's book; CSV.
  • Value at RiskHistorical-simulation VaR and Expected Shortfall: the last 250 days' market moves replayed on today's book, the worst days and what drove them, contributions by group and the history's quality.
  • VaR BacktestingEach day's VaR against the P&L that followed - the run's own book repriced on the next close, and the actual P&L - with exceptions, the Kupiec and Christoffersen tests and the traffic-light zone.
  • P&L ExplainWhy the book's value changed between two sensitivity runs: delta, gamma, vega, rates, FX, theta, settled cash, delivery, new and amended deals, and what is left unexplained - reconciled to Valuation Change.
  • Profit at RiskMonte Carlo on the forward curves: the cash the book settles over the coming months, expected and at 95% - PaR for the horizon, CFaR month by month, a fan chart, each group's figures and the calibration behind them.
  • Risk LimitsCaps on delta, vega, DV01, stress losses, VaR, ES, PaR and CFaR by book, portfolio, commodity or index - checked on every run, with the history of each.
  • Risk DefinitionsNamed ways of measuring market risk: the CURRENT market or the day's closes, fees in or out, a stress definition's scenarios, a VaR definition's levels and window, and the default a run uses.
Back to the map

End-of-day reporting

Middle OfficeFront Office

The day's P&L by counterparty, portfolio and commodity, and the reports the desk, management and the auditors read the next morning.

Screens (6)

  • Valuation ChangeDay-over-day P&L: the move between two valuation runs, split into new, amended, rolled off and market move, with drill-down to the deals behind it.
  • Settlement Prices ReportEvery daily and hourly settlement price in a date range, across all projection indexes and publication sources — sort and filter by column.
  • Cash LadderEvery cash flow still to pay, by currency and when it lands, with known and projected cash and where each currency runs short.
  • Counterparty NettingWhat we receive from and pay to each counterparty in each currency on each day, and how much less cash would move if it settled net.
  • Cash BalancesThe cash each internal party holds in each currency on a date, where the Cash Ladder starts each currency from.
  • Cash LimitsEach currency's minimum balance and FX-mismatch materiality, which decide the Cash Ladder's funding gaps and FX mismatches.
Back to the map

Accounting

Back Office

After the valuation, posting rules turn every deal's value and payments into balanced debits and credits in the firm's own ledger accounts - the sub-ledger that feeds the general ledger. Every posting can say why it was made, and every adjustment who caused it.

Screens (10)

  • Accounting HomeWhere the accounting screens start: today's posting run, open exceptions and the month's close, with every accounting screen by what it is for.
  • Accounting PostingsRun the evening postings and see every debit and credit for a day, with why each one was made.
  • Accounting BalancesLife-to-date balances of every ledger account as of any date, with the trial balance.
  • Accounting ExceptionsWhat the evening run could not post cleanly, and how to fix each one.
  • Posting RulesWhat to post, to which ledger accounts, for which deals, and when.
  • Ledger AccountsYour chart of accounts: the numbers and names postings go to.
  • JournalsThe postings grouped as the run wrote them, each journal with its lines and cause.
  • Accounting SettingsWhich trade types and portfolios are carried at MTM or Accrual, and which are posted nowhere.
  • Late ChangesDeal changes that reached the books after the fact, with who made them, when and why.
  • Accounting Change ExplainWhy a ledger account moved between two dates, split into causes with their owners.
Back to the map

Job automation

IT / OperationsMiddle Office

The end of day runs itself: a scheduled job set closes the market, values the book, runs the risk and writes the reports, with a history of every run.

Screens (2)

  • Job AutomationJob sets run their steps in order on a schedule - end-of-day and intraday work - stopping or carrying on when one fails, with live progress and history.
  • Run ScriptsSaved run definitions with parameters, prompt-on-run, run history and live logs.
Back to the map

Scripting in Java and Python

IT / Operations

Scripts compiled against the running application, with every API method documented with a runnable example in both languages.

Screens (5)

  • Script Editor — JavaWrite Java scripts in projects: compile against the app, import/export, run.
  • Script Editor — PythonWrite Python scripts in projects against the same API: check, import/export, run.
  • Run ScriptsSaved run definitions with parameters, prompt-on-run, run history and live logs.
  • API Glossary — JavaDictionary of the scripting function library for Java: every class and method with a prototype and a cut-and-paste example.
  • API Glossary — PythonThe same library for Python: every class and method with its Python signature and a whole example script.
Back to the map

Month endthe days after a delivery month

Settlement prices and fixings

Back Office

Published settlement prices are loaded as the month delivers; each floating leg fixes print by print until the payment is final and can be invoiced.

Screens (2)

  • Settlement PricesPublished settle prices and rates by projection index, source and date — daily for every commodity, hourly for power.
  • Settlement Prices ReportEvery daily and hourly settlement price in a date range, across all projection indexes and publication sources — sort and filter by column.
Back to the map

Invoicing

Back Office

One invoice per counterparty per month across all their trades, issued as a PDF; an issued invoice locks the payments it printed until it is voided.

Screens (2)

  • InvoicingMonthly counterparty invoices: every payment for one counterparty and month - draft, issue, void. Issued payments are locked.
  • Callable Lease StatementOne callable metal lease facility for one calendar month: each day's balance and interest, the metal moved and the cash moved.
Back to the map

Month-end close

Back Office

Each legal entity's month is checked line by line - postings through the month end, exceptions, late changes, reconciliations, the P&L tie-out - then closed with a frozen close pack and exported to the general ledger.

Screens (4)

  • Month-End CloseCheck, close and reopen an internal party's month, keeping a frozen close pack.
  • Account MovementEach ledger account's month: opening balance, debits, credits and closing, as reported or with later corrections.
  • GL ExportA month's postings as one CSV file for the general ledger to load.
  • ReconciliationsThe books checked against the valuation, the deals' cash and the GL exports, and the P&L tied out to the desk's.
Back to the map