Example of Server-Side Forward Curve and Volatility Surface Construction
About 1 min
Example of Server-Side Forward Curve and Volatility Surface Construction
Visit the Mathema Option Pricing System for foreign exchange options and structured product valuation!
The server-side constructs objects using the abbreviation of the forward curve and the abbreviation of the volatility surface, retrieving the corresponding maturity's swap points and forward prices from the forward curve, and obtaining the corresponding maturity's ATMVol, interest rate, swap points, forward prices, and volatility from the volatility surface
Click the image below to download the template:
The server-side constructs a bilateral forward curve object using the abbreviation of the forward curve
1. Server-side Forward Curve Constructor
- McpFXForwardPointsCurves2:The server creates a bilateral forward curve object from the forward curve abbreviation.
2. Forward Curve Data Extraction Function
- Fxfpc2FXForwardPoints:从双边远期曲线对象上取掉期点。
- Fxfpc2FXForwardOutright:从双边远期曲线对象上取掉远期价格。
3. Server-side Construction of Volatility Surfaces
- McpVolSurfaces:The server-side constructs a bilateral volatility surface object using the abbreviation of the volatility surface。
4. Volatility Surface Data Extraction
- FXVolSurface2GetReferenceDate:Retrieves the reference date of the volatility surface.
- FXVolSurface2GetSpotDate:Retrieves the spot date of the volatility surface.
- FXVolSurface2GetSpot: Retrieves the spot price from the volatility surface.
- FXVolSurface2GetStrike: Retrieves the strike for a given tenor and DeltaString.
- FXVolSurface2GetVolatility:Retrieves the volatility for a given strike and expiry date.
- FXVolSurface2GetATMVol:Retrieves the ATM volatility for a given expiry date.
- FXVolSurface2GetForeignRate:Retrieves the CCY1 interest rate for a given expiry date.
- FXVolSurface2GetDomesticRate:Retrieves the CCY2 interest rate for a given expiry date.
- FXVolSurface2GetForwardPoint:Retrieves the swap points for a given expiry date.
- FXVolSurface2GetForward:Retrieves the forward price for a given expiry date.