Bump and Reprice ATM vega ladder

Table of Contents

This page defines one report: Bump and Reprice ATM vega ladder. It shows the money the book gains or loses at the at-the-money point of each expiry when the volatility there is shifted and the book is repriced. A trading desk reads it to place a vega hedge at a named expiry, and the market risk function reads it to see where the book's volatility exposure sits along the curve. It runs at the close on the schedule. It leaves the engine's output archive in storage, which holds the sensitivity file and the scenario file, and the run records where that archive landed.

1. Purpose

The report answers one question. What does a shift in the at-the-money volatility of one expiry cost the book, or pay it? One bucket answers one expiry, so the ladder shows where the exposure sits along the curve and not only its total.

The answer feeds a hedging decision. A desk decides whether to buy or sell volatility at a named expiry, and whether the concentration the ladder shows is the concentration the desk intended to carry overnight.

The report is not a report at a stated bump. ORE has no such concept. It has a shift, and the shift is a setting of the configuration. The report, its analytics and its reader know nothing about 0.1. They know the size the configuration states and the bucket the engine keys. A desk that wants a tenth of a volatility point states that size in the document the definition binds, and the same report then answers that question.

2. Audience

Role What it takes from the report
trading-desk The money at risk at the at-the-money point of each expiry, so it can size and place a vega hedge.
market-risk The shape of the book's vega along the curve, and whether one expiry carries more than the book states.

3. Frequency

The at-the-money volatility ladder runs on both cycles. The plain definition selects the LIVE cut and reads the market data of the instant it starts, so a desk watches the smile move between the closes. Its "(EOD)" twin selects the EOD cut and values the portfolio at the weekday before the run date, which is the at-the-money statement of record, taken at the close the market risk function signs off. A live ladder is indicative and a close ladder stands, so the two are separate definitions with separate run settings and neither run replaces the record of the other.

Field Value
Cycle eod and intraday
Frequency scheduled
Batch none
Owner market-risk

The plain definition selects the LIVE cut and its run settings row states market data type live; the twin selects EOD and states eod.

4. Inputs

  • Trades selected by scope. A definition states the scope it selects, and the ladder reads the trade set that scope names.
  • Market data for the as-of date, from the end of day cut. The run settings row states market data type eod, so the valuation date is the weekday before the run date, and holiday calendars are not consulted.
  • The sensitivity configuration the analytic binds, through sensitivityConfigFile. The document states the shift on the FX volatility block, with an expiry list and an empty ShiftStrikes.
  • The pricing engine the definition binds. It prices the book before the shift and again after it.
  • The base currency, from the run settings row. The figures are expressed in it.

5. Outputs

The run produces the engine's own output archive. The archive holds this report's CSV artefacts, whose names the run states in its output parameters: sensitivity.csv for the value changes and scenario.csv for the scenarios. The run records where the archive landed against the run instance. It also records the cut the run minted, with the cut's label, kind and instant.

sensitivity.csv carries the value change of each shifted factor in its Delta column, and scenario.csv carries the scenario values that lie behind those figures. A reader sets a row of one file against a row of the other.

The rows a reader would query are a later phase. The result store is designed on Report post-processing and is not built, so today a reader opens the two files in the archive.

6. Measures

Measure Meaning
Base NPV The value of the trade before the shift.
ATM vega, per expiry The value change at the at-the-money point of one expiry when the volatility there is shifted.
Delta The engine's Delta column, which is money per shift and holds the shift size inside it.
Gamma The second-order change at the same bucket. It needs ComputeGamma or a Central shift scheme.

The set is the configuration's. The definitions of the risk measures are on Risk reporting and are not repeated here.

7. Columns and sections

A run writes two files. sensitivity.csv carries the value change for each shifted factor. scenario.csv carries the value under the shift. The columns are the ones ORE output formats states.

Column File Holds Bucket
TradeId both The trade the row prices. no
IsPar sensitivity.csv Whether the engine reports the row as a par sensitivity. no
Factor_1 both The risk factor key, which holds the currency pair and the expiry. yes
ShiftSize_1 both The shift applied to that factor, in the factor's own unit. no
Factor_2 sensitivity.csv The second factor of a paired row. It is empty on a single-factor row. no
ShiftSize_2 both The shift applied to the second factor. no
Currency sensitivity.csv The currency of the measures on the row. no
Base NPV both The value of the trade before the shift. no
Delta sensitivity.csv The value change at the shifted factor, in money per shift. no
Gamma sensitivity.csv The second-order change at the same factor. no
Currency(Trade) sensitivity.csv The currency of the trade. no
Base NPV(Trade) sensitivity.csv The value before the shift, in the trade's currency. no
Delta(Trade) sensitivity.csv Delta in the trade's currency. no
Gamma(Trade) sensitivity.csv Gamma in the trade's currency. no
Scenario sensitivity.csv The scenario label the row belongs to. no
Up/Down scenario.csv Which side of the shift the row prices. no
Scenario NPV scenario.csv The value of the trade under the shift. no
Difference scenario.csv Scenario NPV minus Base NPV. no
Base Currency scenario.csv The base currency of the run. no

A reader places a figure by the Factor_1 key and by no other column. The key holds the currency pair and the expiry, so one key is one bucket of the ladder. The shipped sample writes FX volatility keys in the form FxVolatility/<pair>/<strike>/<expiry>.

8. ORE configuration

The run document states one sensitivity analytic. The analytic names the market configuration and the SensitivityAnalysis document, and it states the output files the engine writes. The fragment below is trimmed from external/ore/examples/MarketRisk/Input/ore_sensismile_atm.xml.

<Analytic type="sensitivity">
  <Parameter name="active">Y</Parameter>
  <Parameter name="marketConfigFile">simulation_atmOnly.xml</Parameter>
  <Parameter name="sensitivityConfigFile">sensitivity_atmOnly.xml</Parameter>
  <Parameter name="pricingEnginesFile">../../Input/pricingengine.xml</Parameter>
  <Parameter name="scenarioOutputFile">scenario.csv</Parameter>
  <Parameter name="sensitivityOutputFile">sensitivity_atmOnly.csv</Parameter>
  <Parameter name="outputSensitivityThreshold">0.000001</Parameter>
  <Parameter name="recalibrateModels">Y</Parameter>
</Analytic>

The SensitivityAnalysis document is a document of its own. ORE validates it against sensitivity.xsd, and it carries one block for each risk class: the curves, the spots, the volatilities, the credit families, the inflation families, the correlations and the rest. This report reads the FX volatility block. Every factor block states four things. ShiftType says how the shift is applied and is Relative, Absolute or EqualTo. ShiftSize says how large it is and is a real, with an optional key for an alternative size. ShiftScheme says where the shift is anchored and is Forward, Backward or Central. The bucket list says which points move, and it is ShiftTenors, ShiftExpiries, ShiftStrikes, ShiftLossLevels or ShiftTerms. ShiftType and ShiftScheme are enums in ore_types.xsd.

The fragment below is the worked case. It is trimmed from external/ore/examples/MarketRisk/Input/sensitivity.xml.

<FxVolatilities>
  <FxVolatility ccypair="USDEUR">
    <ShiftType>Relative</ShiftType>
    <ShiftSize>0.01</ShiftSize>
    <ShiftScheme>Forward</ShiftScheme>
    <ShiftExpiries>1Y,2Y,3Y,5Y</ShiftExpiries>
    <ShiftStrikes/>
  </FxVolatility>
</FxVolatilities>

An empty ShiftStrikes is the at-the-money switch. The block shifts one point on each expiry in the list, and that point is the at-the-money volatility. A populated list shifts every strike it names, which is the surface ladder.

The engine's own names for the two files are sensitivity.csv, which carries the Delta and Gamma columns, and scenario.csv, which carries the scenario values that lie behind them. A run that states output names in its analytic gets the names it states. Delta is a value change and not a derivative. It is money per shift, and the shift size is already inside it. The Difference column of scenario.csv carries the same value, so a reader checks one file against the other.

The bump is a setting of the configuration and not the identity of the report. Two reports over one book that differ only in shift size differ only in the document they bind. A 0.1 vol point bump is ShiftSize 0.1 on a surface stored in vol points, or Absolute 0.001 on a surface stored in decimals. The report itself, its analytics and its reader are the same either way.

9. Parameters

A definition of this report states the rows below. The store states no shift size today, so the shift rows carry no seeded value, and a reader takes the size from the document the definition binds. The mechanism is on ore parameter.

Parameter Domain Seeded value Meaning
sensitivityConfigFile a document of the sensitivity configuration type none The SensitivityAnalysis document the analytic reads.
market_data_type live, eod or date live and eod The market data each definition reads: the plain name the live cut, the twin the end of day one.
base_currency ISO 4217 code the entity's The currency the figures are expressed in.
ShiftType Relative, Absolute or EqualTo none How the shift is applied to the factor.
ShiftSize a real, with an optional key none The size of the shift, in the factor's own unit.
ShiftScheme Forward, Backward or Central none Where the shift is anchored.
ShiftExpiries a list of expiries none The expiries the block shifts.
ShiftStrikes a list of strikes, or empty none The strikes the block shifts. Empty shifts the at-the-money point only.
recalibrateModels Y or N none Whether the models recalibrate before the shift.

10. A worked read

A reader opens the archive the run records and reads the two files in order. No step needs a tool beyond a CSV reader.

  1. Open sensitivity.csv in the archive the run records.
  2. Keep the rows whose Factor_1 key begins FxVolatility/.
  3. Read the currency pair and the expiry out of the key. That pair and that expiry name the bucket.
  4. Read ShiftSize_1 on the row. It states the size of the shift that produced the figure, and it is the only place the size appears.
  5. Read Delta on the same row. It is the value change of that trade at that bucket, already scaled by the shift.
  6. Add Delta across the trades that share the bucket. The sum is the book's figure for that expiry.
  7. Repeat step 6 for each expiry in the block's list. The set of sums is the ladder.
  8. Open scenario.csv and find the row of the same trade and the same factor. Check that Difference agrees with the Delta of the row. A disagreement says the reader has paired the wrong factor.
  9. Read down the ladder and state which expiries carry the exposure, and which expiry the desk did not expect to carry any.

The ladder is a set of value changes at one shift size. It is not a set of derivatives, and a reader who compares two runs compares them only when the two configuration documents state the same size.

11. What is not built

  • No mapper reads or writes a SensitivityAnalysis document. The document is a name in a lookup and a row in the file library, and it is not a modelled entity.
  • The run package carries only the four Setup documents, which are conventions, curve configuration, today's market and pricing engines. An analytic document that no owner exports never reaches the engine.
  • The store seeds no volatility market data. The dataset holds no FX_OPTION/RATE_LNVOL quote and no volatility surface configuration, so the surface point this ladder names has no quote to shift. That is a fact about the data and not about the report.
  • No shift size is stated anywhere in the store.
  • No stored shape holds a bucketed ladder, so the rows a reader of this report would query have no table to land in. The result store is not built.

12. Test coverage

No substitute is defined for this report, so a test run of it executes every phase. It gathers trades and market data and assembles its own bundle. The full-pipeline proof therefore exercises the report, and no smoke test does.

The mechanism the page describes is exercised by the shipped ORE sample. Its two forms are the files in SensiSmile, and the expected output of the at-the-money form is in external/ore/examples/MarketRisk/ExpectedOutput/SensiSmile/Atm/.

The cut resolution the report relies on is exercised by the task that lit the intraday reports, Light the intraday reports on the LIVE cut.

13. Related

14. See also

Emacs 29.3 (Org mode 9.6.15)