Software Solutions/Portfolio Margin Engine/Demo
Portfolio Margin Engine
Enter positions and a new order. The engine stress-tests every position across ten scenarios, rolls the results up through class groups, product groups and portfolio groups with their offsets, and returns the CPM requirement and the house requirement.
Inputs
Overview
Customer Portfolio Margin (CPM) is the risk-based margin methodology of the Options Clearing Corporation (OCC). Strategy-based margin applies a rule to each strategy. CPM stress-tests the whole portfolio across a range of market moves and takes the worst-case loss.
Stress scenarios
Each class group is run through ten scenarios: five down moves and five up moves of increasing size. The worst-case P&L across them sets the CPM requirement. House scenarios, when you set them, apply a range of your own.
Hierarchy
Class group. Positions on the same underlying fall into one class group. Its worst-case scenario P&L sets its requirement.
Product group. Related underlyings, such as SPY and SPX, share a product group, where correlated positions offset one another.
Portfolio group. Product groups are collected into a portfolio group, where a further offset can apply.
Offsets
An offset lowers the requirement because correlated positions partly hedge each other. The offset percentage sets how much of that benefit a group allows.
Net liquidating value and excess
The engine returns requirements. This page adds the account's net liquidating value, which is cash plus every position at its price (an option's price times 100), and its excess, which is net liquidating value less the requirement.
Request limits
I keep the request limits on this demo conservative. If you want to run a lot of cases, or have a question, contact me.
Result
Roll-Up
RequirementSaved by offsetWorst case