Skip to content

Commit 609a797

Browse files
committed
add 118 tests; turn to QuantLib 1.27
1 parent 24b1c4d commit 609a797

320 files changed

Lines changed: 26695 additions & 51388 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.

README 中文.md

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
> 相关博客:<https://www.cnblogs.com/xuruilong100/p/13281006.html>
1313
>
1414
> 环境:
15-
> * QuantLib: 1.25
16-
> * swig: 4.0.1
17-
> * icx, icpx: Intel(R) oneAPI DPC++/C++ Compiler 2022.0.0 (2022.0.0.20211123)
18-
> * ubuntu: 20.04.2 LTS
15+
> * QuantLib: 1.27
16+
> * swig: 4.0.2
17+
> * icx, icpx: Intel(R) oneAPI DPC++/C++ Compiler 2022.1.0 (2022.1.0.20220316)
18+
> * ubuntu: 22.04 LTS
1919
2020
---
2121

@@ -26,7 +26,7 @@
2626
1. 生成 `.cpp` 文件:
2727

2828
```
29-
swig3.0 -c++ -python -outdir QuantLib -o QuantLib/ql_wrap.cpp quantlib.i
29+
swig4.0 -w509 -c++ -python -outdir QuantLib -o QuantLib/ql_wrap.cpp quantlib.i
3030
```
3131

3232
2. 编译 `.cpp` 文件:
@@ -74,16 +74,18 @@ python3 setup.py install
7474
* [x] andreasenhugevolatilityinterpl
7575
* [x] array
7676
* [x] asianoptions
77-
* [ ] assetswap
77+
* [x] assetswap
7878
* [x] autocovariances
7979
* [x] barrieroption
8080
* [x] basismodels
81+
* [x] basisswapratehelpers
8182
* [x] basketoption
8283
* [x] batesmodel
8384
* [x] bermudanswaption
8485
* [x] binaryoption
8586
* [x] blackdeltacalculator
8687
* [x] blackformula
88+
* [x] bondforward
8789
* [x] bonds
8890
* [x] brownianbridge
8991
* [x] businessdayconventions
@@ -100,14 +102,14 @@ python3 setup.py install
100102
* [x] cms
101103
* [x] cmsspread
102104
* [x] commodityunitofmeasure
103-
* [ ] compiledboostversion
104105
* [x] compoundoption
105106
* [x] convertiblebonds
106107
* [x] covariance
107108
* [x] creditdefaultswap
108109
* [x] creditriskplus
110+
* [x] crosscurrencyratehelpers
109111
* [x] currency
110-
* [ ] curvestates
112+
* [x] curvestates
111113
* [x] dates
112114
* [x] daycounters
113115
* [x] defaultprobabilitycurves
@@ -130,7 +132,7 @@ python3 setup.py install
130132
* [x] fdsabr
131133
* [x] fittedbonddiscountcurve
132134
* [x] forwardoption
133-
* [ ] forwardrateagreement
135+
* [x] forwardrateagreement
134136
* [x] functions
135137
* [x] garch
136138
* [x] gaussianquadratures
@@ -141,32 +143,33 @@ python3 setup.py install
141143
* [x] himalayaoption
142144
* [x] hybridhestonhullwhiteprocess
143145
* [x] indexes
144-
* [ ] inflationcapflooredcoupon
145-
* [ ] inflationcapfloor
146-
* [ ] inflationcpibond
147-
* [ ] inflationcpicapfloor
148-
* [ ] inflationcpiswap
149-
* [ ] inflation
150-
* [ ] inflationvolatility
146+
* [x] inflation
147+
* [x] inflationcapfloor
148+
* [x] inflationcapflooredcoupon
149+
* [x] inflationcpibond
150+
* [x] inflationcpicapfloor
151+
* [x] inflationcpiswap
152+
* [x] inflationvolatility
153+
* [x] inflationzciisinterpolation
151154
* [x] instruments
152155
* [x] integrals
153156
* [x] interestrates
154157
* [x] interpolations
155158
* [x] jumpdiffusion
156159
* [x] lazyobject
157-
* [ ] libormarketmodel
158-
* [ ] libormarketmodelprocess
160+
* [x] libormarketmodel
161+
* [x] libormarketmodelprocess
159162
* [ ] linearleastsquaresregression
160163
* [x] lookbackoptions
161164
* [x] lowdiscrepancysequences
162165
* [x] margrabeoption
163-
* [ ] marketmodel_cms
164-
* [ ] marketmodel
165-
* [ ] marketmodel_smmcapletalphacalibration
166-
* [ ] marketmodel_smmcapletcalibration
167-
* [ ] marketmodel_smmcaplethomocalibration
168-
* [ ] marketmodel_smm
169-
* [ ] markovfunctional
166+
* [x] marketmodel_cms
167+
* [x] marketmodel
168+
* [x] marketmodel_smmcapletalphacalibration
169+
* [x] marketmodel_smmcapletcalibration
170+
* [x] marketmodel_smmcaplethomocalibration
171+
* [x] marketmodel_smm
172+
* [x] markovfunctional
170173
* [x] matrices
171174
* [x] mclongstaffschwartzengine
172175
* [x] mersennetwister
@@ -178,39 +181,40 @@ python3 setup.py install
178181
* [x] numericaldifferentiation
179182
* [ ] observable
180183
* [ ] ode
181-
* [ ] operators
182-
* [ ] optimizers
184+
* [x] operators
185+
* [x] optimizers
183186
* [x] optionletstripper
187+
* [x] overnightindexedcoupon
184188
* [x] overnightindexedswap
185189
* [x] pagodaoption
186-
* [ ] paralleltestrunner
187190
* [x] partialtimebarrieroption
188191
* [x] pathgenerator
189192
* [x] period
190193
* [x] piecewiseyieldcurve
191194
* [x] piecewisezerospreadedtermstructure
192195
* [x] quantooption
193196
* [x] quotes
194-
* [ ] rangeaccrual
197+
* [x] rangeaccrual
195198
* [x] riskneutraldensitycalculator
196199
* [x] riskstats
197200
* [x] rngtraits
198201
* [x] rounding
199202
* [x] sampledcurve
200203
* [x] schedule
204+
* [x] settings
201205
* [x] shortratemodels
202-
* [ ] sofrfutures
206+
* [x] sofrfutures
203207
* [x] solvers
204-
* [ ] speedlevel
205208
* [x] spreadoption
206209
* [x] squarerootclvmodel
207210
* [x] stats
208-
* [ ] swapforwardmappings
211+
* [x] subperiodcoupons
212+
* [x] svivolatility
209213
* [x] swap
214+
* [x] swapforwardmappings
210215
* [x] swaption
211216
* [x] swaptionvolatilitycube
212217
* [x] swaptionvolatilitymatrix
213-
* [ ] swaptionvolstructuresutilities
214218
* [x] swingoption
215219
* [x] termstructures
216220
* [x] timegrid
@@ -225,6 +229,6 @@ python3 setup.py install
225229
* [x] varianceoption
226230
* [x] varianceswaps
227231
* [x] volatilitymodels
228-
* [ ] vpp
232+
* [x] vpp
229233
* [x] zabr
230234
* [x] zerocouponswap

README.md

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
> Related blog (in Chinese): <https://www.cnblogs.com/xuruilong100/p/13281006.html>
1313
>
1414
> Environment:
15-
> * QuantLib: 1.25
16-
> * swig: 4.0.1
17-
> * icx, icpx: Intel(R) oneAPI DPC++/C++ Compiler 2022.0.0 (2022.0.0.20211123)
18-
> * ubuntu: 20.04.2 LTS
15+
> * QuantLib: 1.27
16+
> * swig: 4.0.2
17+
> * icx, icpx: Intel(R) oneAPI DPC++/C++ Compiler 2022.1.0 (2022.1.0.20220316)
18+
> * ubuntu: 22.04 LTS
1919
2020
---
2121

@@ -26,7 +26,7 @@ Open `../SWIGpy/` and run the following commands.
2626
1. Generate `.cpp` file:
2727

2828
```
29-
swig4.0 -c++ -python -outdir QuantLib -o QuantLib/ql_wrap.cpp quantlib.i
29+
swig4.0 -w509 -c++ -python -outdir QuantLib -o QuantLib/ql_wrap.cpp quantlib.i
3030
```
3131

3232
2. Compile `.cpp` file:
@@ -74,16 +74,18 @@ python3 setup.py install
7474
* [x] andreasenhugevolatilityinterpl
7575
* [x] array
7676
* [x] asianoptions
77-
* [ ] assetswap
77+
* [x] assetswap
7878
* [x] autocovariances
7979
* [x] barrieroption
8080
* [x] basismodels
81+
* [x] basisswapratehelpers
8182
* [x] basketoption
8283
* [x] batesmodel
8384
* [x] bermudanswaption
8485
* [x] binaryoption
8586
* [x] blackdeltacalculator
8687
* [x] blackformula
88+
* [x] bondforward
8789
* [x] bonds
8890
* [x] brownianbridge
8991
* [x] businessdayconventions
@@ -100,14 +102,14 @@ python3 setup.py install
100102
* [x] cms
101103
* [x] cmsspread
102104
* [x] commodityunitofmeasure
103-
* [ ] compiledboostversion
104105
* [x] compoundoption
105106
* [x] convertiblebonds
106107
* [x] covariance
107108
* [x] creditdefaultswap
108109
* [x] creditriskplus
110+
* [x] crosscurrencyratehelpers
109111
* [x] currency
110-
* [ ] curvestates
112+
* [x] curvestates
111113
* [x] dates
112114
* [x] daycounters
113115
* [x] defaultprobabilitycurves
@@ -130,7 +132,7 @@ python3 setup.py install
130132
* [x] fdsabr
131133
* [x] fittedbonddiscountcurve
132134
* [x] forwardoption
133-
* [ ] forwardrateagreement
135+
* [x] forwardrateagreement
134136
* [x] functions
135137
* [x] garch
136138
* [x] gaussianquadratures
@@ -141,32 +143,33 @@ python3 setup.py install
141143
* [x] himalayaoption
142144
* [x] hybridhestonhullwhiteprocess
143145
* [x] indexes
144-
* [ ] inflationcapflooredcoupon
145-
* [ ] inflationcapfloor
146-
* [ ] inflationcpibond
147-
* [ ] inflationcpicapfloor
148-
* [ ] inflationcpiswap
149-
* [ ] inflation
150-
* [ ] inflationvolatility
146+
* [x] inflation
147+
* [x] inflationcapfloor
148+
* [x] inflationcapflooredcoupon
149+
* [x] inflationcpibond
150+
* [x] inflationcpicapfloor
151+
* [x] inflationcpiswap
152+
* [x] inflationvolatility
153+
* [x] inflationzciisinterpolation
151154
* [x] instruments
152155
* [x] integrals
153156
* [x] interestrates
154157
* [x] interpolations
155158
* [x] jumpdiffusion
156159
* [x] lazyobject
157-
* [ ] libormarketmodel
158-
* [ ] libormarketmodelprocess
160+
* [x] libormarketmodel
161+
* [x] libormarketmodelprocess
159162
* [ ] linearleastsquaresregression
160163
* [x] lookbackoptions
161164
* [x] lowdiscrepancysequences
162165
* [x] margrabeoption
163-
* [ ] marketmodel_cms
164-
* [ ] marketmodel
165-
* [ ] marketmodel_smmcapletalphacalibration
166-
* [ ] marketmodel_smmcapletcalibration
167-
* [ ] marketmodel_smmcaplethomocalibration
168-
* [ ] marketmodel_smm
169-
* [ ] markovfunctional
166+
* [x] marketmodel_cms
167+
* [x] marketmodel
168+
* [x] marketmodel_smmcapletalphacalibration
169+
* [x] marketmodel_smmcapletcalibration
170+
* [x] marketmodel_smmcaplethomocalibration
171+
* [x] marketmodel_smm
172+
* [x] markovfunctional
170173
* [x] matrices
171174
* [x] mclongstaffschwartzengine
172175
* [x] mersennetwister
@@ -178,39 +181,40 @@ python3 setup.py install
178181
* [x] numericaldifferentiation
179182
* [ ] observable
180183
* [ ] ode
181-
* [ ] operators
182-
* [ ] optimizers
184+
* [x] operators
185+
* [x] optimizers
183186
* [x] optionletstripper
187+
* [x] overnightindexedcoupon
184188
* [x] overnightindexedswap
185189
* [x] pagodaoption
186-
* [ ] paralleltestrunner
187190
* [x] partialtimebarrieroption
188191
* [x] pathgenerator
189192
* [x] period
190193
* [x] piecewiseyieldcurve
191194
* [x] piecewisezerospreadedtermstructure
192195
* [x] quantooption
193196
* [x] quotes
194-
* [ ] rangeaccrual
197+
* [x] rangeaccrual
195198
* [x] riskneutraldensitycalculator
196199
* [x] riskstats
197200
* [x] rngtraits
198201
* [x] rounding
199202
* [x] sampledcurve
200203
* [x] schedule
204+
* [x] settings
201205
* [x] shortratemodels
202-
* [ ] sofrfutures
206+
* [x] sofrfutures
203207
* [x] solvers
204-
* [ ] speedlevel
205208
* [x] spreadoption
206209
* [x] squarerootclvmodel
207210
* [x] stats
208-
* [ ] swapforwardmappings
211+
* [x] subperiodcoupons
212+
* [x] svivolatility
209213
* [x] swap
214+
* [x] swapforwardmappings
210215
* [x] swaption
211216
* [x] swaptionvolatilitycube
212217
* [x] swaptionvolatilitymatrix
213-
* [ ] swaptionvolstructuresutilities
214218
* [x] swingoption
215219
* [x] termstructures
216220
* [x] timegrid
@@ -225,6 +229,6 @@ python3 setup.py install
225229
* [x] varianceoption
226230
* [x] varianceswaps
227231
* [x] volatilitymodels
228-
* [ ] vpp
232+
* [x] vpp
229233
* [x] zabr
230234
* [x] zerocouponswap

0 commit comments

Comments
 (0)