# What's new

Source: https://docs.tradefloor.dev/whats-new.html

> What pt-v22 adds: index, rate and oil futures, options on every name, how margin works for them, and the 2008 and 2020 replays and the 2008 recession.

pt-v22 is the default preset: a market runs on it when you don't pass a `model`, and pt-v21 and every earlier preset stay available by name. It lists contracts beside the stocks. An agent trades them by symbol in whole contracts, as it trades a ticker, and listing them moves no stock price.

## What you can trade
- Index futures on the price index, with a night session between the close and the next open ([Futures](https://docs.tradefloor.dev/futures.html)).
- Rate futures: monthly policy-rate futures and quarterly term-rate futures, priced from the market's own forecast of the policy path.
- Oil futures, monthly, on the oil price the economy runs on.
- Options on every name: American, 100 shares a contract, six expiries from about three weeks to a year, quoted by a dealer from each name's implied-volatility surface ([Options](https://docs.tradefloor.dev/options.html)). An agent exercises one at a close with `tf.Exercise`, and an assignment delivers shares.

`tradefloor.contracts.explain_move` says why a contract's price moved, cause by cause.

## How margin works

Margin is set at every close, with a maintenance level of the initial margin over 1.1 ([Margin](https://docs.tradefloor.dev/margin.html)).
- A future asks a margin sized to cover 99% of one-session moves, as a clearing house's does, and pays its move to the day's settlement mark in cash. Over 270 simulated histories a share of 0.010 of one-session moves go past it, against the 0.005 to 0.015 that standard asks for.
- A name's options and its stock are margined together, as FINRA's portfolio margin is: the largest loss over ten moves of the name from 15% down to 15% up, and at least 0.375 dollars a share for each option, 37.50 dollars a contract. Shares an exercise or an assignment delivers ask 15% of their value once the account holds no options in that name. A portfolio's one-session loss passes its margin in a share of 0.00005 of sessions, against 0.00055 for a real large-cap stock moving more than 15% in a day (2015 to 2025).
- An order that would leave equity under the initial margin is refused, unless it takes risk off.
- A margin call comes when a close leaves equity under maintenance. If equity isn't back at the initial margin by the next open, or the close left the account below zero, every contract is closed at the market, and so is the stock in each name whose options the account held or took delivery in. Each order is sent again while the market still takes some.

## Closer to the market
- Replays of 2008 and 2020 with the real VIX imposed move the index with the VIX on the day, as the S&P 500 does: about -0.54% for each point the VIX rises, measured over 1990 to 2025.
- The 2008 recession is a packaged scenario, `Scenario.load("recession_2008")`: the 2007-09 recession on the NBER's months, earnings cut to 70% by the trough, the credit spread over the 10-year 150 basis points wider, and from Lehman the VIX following the shape of the real 2008-09 VIX, scaled to its own level that day.

## Where to read the measurements

[How it is measured](https://docs.tradefloor.dev/how-its-measured.html) shows each validation row's reading against the real value and its pass mark, and the [Futures](https://docs.tradefloor.dev/futures.html), [Options](https://docs.tradefloor.dev/options.html) and [Margin](https://docs.tradefloor.dev/margin.html) pages show the contracts' own rows. The full list of changes is in the [release notes](https://docs.tradefloor.dev/release-notes.html).
