Skip to content

Commit 4e7b78b

Browse files
Merge remote-tracking branch 'origin/master' into github_modules
2 parents 5b7b938 + 11151e6 commit 4e7b78b

141 files changed

Lines changed: 10823 additions & 19421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[submodule "QuantLib"]
22
path = QuantLib
3-
url = https://github.com/OpenSourceRisk/QuantLib.git
3+
url = git@gitlab.acadiasoft.net:qs/quantlib.git
44
branch = master
55
ignore = dirty

CMakePresets.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"version": 2,
33
"configurePresets": [
44
{
5-
"name": "windows-ninja-x64-relWithDebInfo",
5+
"name": "windows-ninja-x64-debug",
66
"binaryDir": "${sourceDir}/build",
7-
"generator": "Ninja",
7+
"generator": "Ninja Multi-Config",
88
"cacheVariables": {
9-
"CMAKE_C_COMPILER": "cl.exe",
109
"CMAKE_CXX_COMPILER": "cl.exe",
11-
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
10+
"CMAKE_BUILD_TYPE": "Debug",
1211
"BOOST_INCLUDEDIR": "$env{BOOST}",
1312
"BOOST_LIBRARYDIR": "$env{BOOST_LIB64}",
1413
"QL_BUILD_EXAMPLES": false,
1514
"QL_BUILD_TEST_SUITE": false,
1615
"QL_BUILD_BENCHMARK": false,
1716
"MSVC_LINK_DYNAMIC_RUNTIME": true,
18-
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
17+
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
1918
"ENABLE_SESSIONS": true,
19+
"ORE_BUILD_DOC": false
2020
},
2121
"architecture": {
2222
"value": "x64",
@@ -32,22 +32,21 @@
3232
}
3333
},
3434
{
35-
"name": "windows-ninja-x64-debug",
35+
"name": "windows-ninja-x64-relWithDebInfo",
3636
"binaryDir": "${sourceDir}/build",
37-
"generator": "Ninja",
37+
"generator": "Ninja Multi-Config",
3838
"cacheVariables": {
39-
"CMAKE_C_COMPILER": "cl.exe",
4039
"CMAKE_CXX_COMPILER": "cl.exe",
41-
"CMAKE_BUILD_TYPE": "Debug",
40+
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
4241
"BOOST_INCLUDEDIR": "$env{BOOST}",
4342
"BOOST_LIBRARYDIR": "$env{BOOST_LIB64}",
4443
"QL_BUILD_EXAMPLES": false,
4544
"QL_BUILD_TEST_SUITE": false,
4645
"QL_BUILD_BENCHMARK": false,
47-
"MSVC_LINK_DYNAMIC_RUNTIME": false,
48-
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
46+
"MSVC_LINK_DYNAMIC_RUNTIME": true,
47+
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
4948
"ENABLE_SESSIONS": true,
50-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
49+
"ORE_BUILD_DOC": false
5150
},
5251
"architecture": {
5352
"value": "x64",
@@ -73,9 +72,9 @@
7372
"QL_BUILD_TEST_SUITE": false,
7473
"QL_BUILD_BENCHMARK": false,
7574
"MSVC_LINK_DYNAMIC_RUNTIME": true,
76-
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
75+
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
7776
"ENABLE_SESSIONS": true,
78-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
77+
"ORE_BUILD_DOC": false
7978
},
8079
"architecture": {
8180
"value": "x64",
@@ -103,7 +102,7 @@
103102
"MSVC_LINK_DYNAMIC_RUNTIME": false,
104103
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
105104
"ENABLE_SESSIONS": true,
106-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
105+
"ORE_BUILD_DOC": false
107106
},
108107
"architecture": {
109108
"value": "x64",

Docs/UserGuide/parameterisation/curveconfig.tex

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ \subsubsection{Swaption Volatility Structures}
101101
\subsubsection{FX Volatility Structures}
102102

103103
Listings \ref{lst:fxoptionvol_configuration_atm}, \ref{lst:fxoptionvol_configuration_smile_vv},
104-
\ref{lst:fxoptionvol_configuration_smile_delta}, \ref{lst:fxoptionvol_configuration_smile_bfrr},
104+
\ref{lst:fxoptionvol_configuration_smile_delta}, \ref{lst:fxoptionvol_configuration_smile_bfrr}, \ref{lst:fxoptionvol_configuration_smile_absolute},
105105
\ref{lst:fxoptionvol_configuration_atm_triangulated} shows examples of FX volatility structure configurations.
106106

107107
\begin{longlisting}
@@ -189,6 +189,27 @@ \subsubsection{FX Volatility Structures}
189189
\label{lst:fxoptionvol_configuration_smile_bfrr}
190190
\end{longlisting}
191191

192+
\begin{longlisting}
193+
\begin{minted}[fontsize=\footnotesize]{xml}
194+
<FXVolatility>
195+
<CurveId>USDJPY</CurveId>
196+
<CurveDescription />
197+
<Dimension>Smile</Dimension>
198+
<SmileType>Absolute</SmileType>
199+
<SmileInterpolation>Cubic</SmileInterpolation>
200+
<Expiries>1M,3M,6M,1Y,2Y,3Y,10Y</Expiries>
201+
<FXSpotID>FX/USD/JPY</FXSpotID>
202+
<FXForeignCurveID>Yield/USD/USD1D</FXForeignCurveID>
203+
<FXDomesticCurveID>Yield/JPY/JPY-IN-USD</FXDomesticCurveID>
204+
<DayCounter>A365</DayCounter>
205+
<Calendar>US,JP</Calendar>
206+
<Conventions>USD-JPY-FXOPTION</Conventions>
207+
</FXVolatility>
208+
\end{minted}
209+
\caption{FX option volatility configuration Smile / Absolute vols}
210+
\label{lst:fxoptionvol_configuration_smile_absolute}
211+
\end{longlisting}
212+
192213
\begin{longlisting}
193214
\begin{minted}[fontsize=\footnotesize]{xml}
194215
<FXVolatility>
@@ -208,15 +229,15 @@ \subsubsection{FX Volatility Structures}
208229

209230
The meaning of each of the elements in Listings \ref{lst:fxoptionvol_configuration_atm},
210231
\ref{lst:fxoptionvol_configuration_smile_vv}, \ref{lst:fxoptionvol_configuration_smile_delta},
211-
\ref{lst:fxoptionvol_configuration_smile_bfrr}, \ref{lst:fxoptionvol_configuration_atm_triangulated} is given below.
232+
\ref{lst:fxoptionvol_configuration_smile_bfrr}, \ref{lst:fxoptionvol_configuration_smile_absolute}, \ref{lst:fxoptionvol_configuration_atm_triangulated} is given below.
212233

213234
\begin{itemize}
214235
\item CurveId: Unique identifier of the FX volatility structure
215236
\item CurveDescription [Optional]: A description of the volatility structure, may be left blank.
216237
\item Dimension: Distinguishes at-the-money volatility curves from volatility surfaces. An `ATMTriangulated' value
217238
denotes a curve triangulated from two other surfaces.\\ Allowable values: {\tt ATM, Smile, ATMTriangulated}
218239
\item SmileType [Optional]: Required field in case of Dimension {\tt Smile}, otherwise it can be omitted. \\ Allowable
219-
values: {\tt VannaVolga} as per (Castagna \& Mercurio - 2006), {\tt Delta}, {\tt BFRR}, with default value {\tt
240+
values: {\tt VannaVolga} as per (Castagna \& Mercurio - 2006), {\tt Delta}, {\tt BFRR}, {\tt Absolute}, with default value {\tt
220241
VannaVolga} if left blank.
221242
\item SmileInterpolation [Optional]: Smile interpolation method applied, required field in case of Dimension {\tt
222243
Smile}, otherwise it can be omitted. \\ Allowable values:
@@ -225,11 +246,11 @@ \subsubsection{FX Volatility Structures}
225246
blank. VannaVolga1/VannaVolga2 refer to the first/second approximation in (eq. 13) and (eq. 14) of the reference
226247
above.
227248
\item {\tt Linear} or {\tt Cubic} in case of SmileType {\tt Delta} or {\tt BFRR} with default {\tt Linear} for SmileType
228-
Delta and {\tt Cubic} for SmileType BFRR if left blank
249+
Delta and {\tt Cubic} for SmileType BFRR and Absolute if left blank
229250
\end{itemize}
230251
\item Expiries: Option expiries in period form. A wildcard may also be used. In the wildcard case, it will look for any
231252
matching quotes provided in the loader, and construct the curve from these. This is currently only supported for {\tt
232-
ATM} or {\tt Delta} or {\tt BFRR} curves.
253+
ATM} or {\tt Delta} or {\tt BFRR} or {\tt Absolute} curves.
233254
\item Deltas [Optional]: Strike grid, required in case of SmileType {\tt Delta} \\ Allowable values: {\tt ATM, *P, *C},
234255
see example in Listing \ref{lst:fxoptionvol_configuration_smile_delta}
235256
\item SmileDelta [Optional]: Strike grid for SmileType {\tt VannaVolga} and {\tt BFRR}, defaults to 25 for VannaVolga

0 commit comments

Comments
 (0)