The Greeks and Option Risk Management › Option Portfolio Risk Reports
Quantitative FinanceAll chapters The Greeks and Option Risk Management › Option Portfolio Risk ReportsSection view · Sections in this chapter12 / 14 ↓
Reading tools Definitions, links & notes
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
In practice, we work with entire portfolios of options rather than individual positions. A typical risk report aggregates Greeks across all positions. In the code below, we define a portfolio of mixed positions, calculate the Greeks for each, and sum them to determine the net portfolio exposure:
PythonIn [43]Expand
# Sample portfolio of options on the same underlying
portfolio = [
{"type": "call", "K": 95, "T": 0.25, "position": 50}, # Long 50 ITM calls
{"type": "put", "K": 100, "T": 0.25, "position": -30}, # Short 30 ATM puts
{"type": "call", "K": 105, "T": 0.5, "position": 100}, # Long 100 OTM calls
{"type": "put", "K": 95, "T": 0.5, "position": 25}, # Long 25 OTM puts
]
S, r, sigma = 100, 0.05, 0.20
# Calculate portfolio Greeks
portfolio_greeks = {"Delta": 0, "Gamma": 0, "Theta": 0, "Vega": 0, "Rho": 0}
portfolio_details = []
for pos in portfolio:
opt = BlackScholesGreeks(S, pos["K"], pos["T"], r, sigma, pos["type"])
n = pos["position"]
details = {
"Description": f"{pos['type'].upper()} K={pos['K']} T={pos['T']}y",
"Position": n,
"Price": opt.price(),
"Delta": n * opt.delta(),
"Gamma": n * opt.gamma(),
"Theta": n * opt.theta() / 365,
"Vega": n * opt.vega() / 100,
}
portfolio_details.append(details)
portfolio_greeks["Delta"] += details["Delta"]
portfolio_greeks["Gamma"] += details["Gamma"]
portfolio_greeks["Theta"] += details["Theta"]
portfolio_greeks["Vega"] += details["Vega"]ConsoleOut [44]Expand
Option Portfolio Risk Report =========================================================================== Underlying: $100 | Vol: 20% | Rate: 5% =========================================================================== Position Qty Delta Gamma Theta Vega --------------------------------------------------------------------------- CALL K=95 T=0.25y 50 37.71 1.5744 -1.33 7.87 PUT K=100 T=0.25y -30 12.92 -1.1786 0.46 -5.89 CALL K=105 T=0.5y 100 46.12 2.8076 -2.11 28.08 PUT K=95 T=0.5y 25 -6.77 0.5854 -0.22 5.85 --------------------------------------------------------------------------- PORTFOLIO TOTAL 89.97 3.7888 -3.20 35.91
This type of report allows you to quickly understand your exposures and decide whether to hedge. The portfolio above is long delta, meaning it benefits from rising stock prices (gaining approximately the delta amount for a $1 increase. It is also long gamma and vega, meaning the position value increases with both large market moves and rising volatility. However, these benefits come at a cost: the negative theta indicates the portfolio loses value daily due to time decay.
VisualizationOut [46]Expand

VisualizationOut [47]Expand

VisualizationOut [48]Expand

Comments
Add to the conversation
A question, a correction, or an example from your own work.
1 comment
Great material!
I have a question lets say you cannot hedge gamma with options.
Assume the asset does not have a liquid market like in cases for an OTC desk.
How would you hedge gamma ( and vega ) in this case?
For simplicity sake assume you have access to futures and spot.