Skip to content

Commit 83347d0

Browse files
author
Olivier Davant
committed
IP Curves example update -
main_constituent_asset_class parameter added
1 parent 3ea0814 commit 83347d0

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

Examples/2-Content/2.08-IPA-CurvesAndSurfaces/EX-2.08.01-IPA-CurvesAndSurfaces-ForwardCurve.ipynb

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
{
5151
"cell_type": "code",
52-
"execution_count": 1,
52+
"execution_count": null,
5353
"metadata": {},
5454
"outputs": [],
5555
"source": [
@@ -66,7 +66,7 @@
6666
},
6767
{
6868
"cell_type": "code",
69-
"execution_count": 2,
69+
"execution_count": 1,
7070
"metadata": {},
7171
"outputs": [],
7272
"source": [
@@ -85,16 +85,16 @@
8585
},
8686
{
8787
"cell_type": "code",
88-
"execution_count": 3,
88+
"execution_count": 2,
8989
"metadata": {},
9090
"outputs": [
9191
{
9292
"data": {
9393
"text/plain": [
94-
"<refinitiv.data.session.Definition object at 0x7fc8f0483640 {name='workspace'}>"
94+
"<refinitiv.data.session.Definition object at 0x7fa6a3b1c9d0 {name='workspace'}>"
9595
]
9696
},
97-
"execution_count": 3,
97+
"execution_count": 2,
9898
"metadata": {},
9999
"output_type": "execute_result"
100100
}
@@ -112,7 +112,7 @@
112112
},
113113
{
114114
"cell_type": "code",
115-
"execution_count": 6,
115+
"execution_count": 3,
116116
"metadata": {},
117117
"outputs": [
118118
{
@@ -148,16 +148,16 @@
148148
" <th>0</th>\n",
149149
" <td>2021-02-01</td>\n",
150150
" <td>2021-02-01</td>\n",
151-
" <td>1</td>\n",
152-
" <td>0</td>\n",
151+
" <td>1.0</td>\n",
152+
" <td>0.744861</td>\n",
153153
" <td>0D</td>\n",
154154
" </tr>\n",
155155
" <tr>\n",
156156
" <th>1</th>\n",
157157
" <td>2021-02-04</td>\n",
158158
" <td>2021-02-01</td>\n",
159-
" <td>1</td>\n",
160-
" <td>0</td>\n",
159+
" <td>0.999939</td>\n",
160+
" <td>0.744861</td>\n",
161161
" <td>1D</td>\n",
162162
" </tr>\n",
163163
" </tbody>\n",
@@ -166,11 +166,11 @@
166166
],
167167
"text/plain": [
168168
" endDate startDate discountFactor ratePercent tenor\n",
169-
"0 2021-02-01 2021-02-01 1 0 0D\n",
170-
"1 2021-02-04 2021-02-01 1 0 1D"
169+
"0 2021-02-01 2021-02-01 1.0 0.744861 0D\n",
170+
"1 2021-02-04 2021-02-01 0.999939 0.744861 1D"
171171
]
172172
},
173-
"execution_count": 6,
173+
"execution_count": 3,
174174
"metadata": {},
175175
"output_type": "execute_result"
176176
}
@@ -181,6 +181,7 @@
181181
" currency=\"EUR\",\n",
182182
" index_name=\"EURIBOR\",\n",
183183
" discounting_tenor=\"OIS\",\n",
184+
" main_constituent_asset_class=\"Swap\",\n",
184185
" ),\n",
185186
" forward_curve_definitions=[\n",
186187
" forward_curves.ForwardCurveDefinition(\n",
@@ -207,7 +208,7 @@
207208
},
208209
{
209210
"cell_type": "code",
210-
"execution_count": 7,
211+
"execution_count": 4,
211212
"metadata": {
212213
"pycharm": {
213214
"name": "#%%\n"

Examples/2-Content/2.08-IPA-CurvesAndSurfaces/EX-2.08.02-IPA-CurvesAndSurfaces-ZCCurves.ipynb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
{
5151
"cell_type": "code",
52-
"execution_count": 1,
52+
"execution_count": null,
5353
"metadata": {},
5454
"outputs": [],
5555
"source": [
@@ -66,7 +66,7 @@
6666
},
6767
{
6868
"cell_type": "code",
69-
"execution_count": 2,
69+
"execution_count": 1,
7070
"metadata": {},
7171
"outputs": [],
7272
"source": [
@@ -85,16 +85,16 @@
8585
},
8686
{
8787
"cell_type": "code",
88-
"execution_count": 3,
88+
"execution_count": 2,
8989
"metadata": {},
9090
"outputs": [
9191
{
9292
"data": {
9393
"text/plain": [
94-
"<refinitiv.data.session.Definition object at 0x7f9c543794f0 {name='workspace'}>"
94+
"<refinitiv.data.session.Definition object at 0x7fd0f9b24820 {name='workspace'}>"
9595
]
9696
},
97-
"execution_count": 3,
97+
"execution_count": 2,
9898
"metadata": {},
9999
"output_type": "execute_result"
100100
}
@@ -112,7 +112,7 @@
112112
},
113113
{
114114
"cell_type": "code",
115-
"execution_count": 6,
115+
"execution_count": 3,
116116
"metadata": {},
117117
"outputs": [
118118
{
@@ -254,7 +254,7 @@
254254
"[157 rows x 5 columns]"
255255
]
256256
},
257-
"execution_count": 6,
257+
"execution_count": 3,
258258
"metadata": {},
259259
"output_type": "execute_result"
260260
}
@@ -272,6 +272,7 @@
272272
" index_name=\"EURIBOR\",\n",
273273
" source=\"Refinitiv\",\n",
274274
" discounting_tenor=\"OIS\",\n",
275+
" main_constituent_asset_class=\"Swap\",\n",
275276
" ),\n",
276277
" curve_tag=\"TAG\",\n",
277278
").get_data()\n",
@@ -288,7 +289,7 @@
288289
},
289290
{
290291
"cell_type": "code",
291-
"execution_count": 7,
292+
"execution_count": 4,
292293
"metadata": {
293294
"pycharm": {
294295
"name": "#%%\n"

0 commit comments

Comments
 (0)