Skip to content

Commit 547042a

Browse files
committed
Various changes
1 parent 564f6ec commit 547042a

File tree

8 files changed

+2123
-2923
lines changed

8 files changed

+2123
-2923
lines changed

2.Content/2.1-HistoricalPricing/2.1.01-HistoricalPricing.ipynb

Lines changed: 1051 additions & 1070 deletions
Large diffs are not rendered by default.

2.Content/2.2-Pricing/2.2.01-Pricing-Snapshot.ipynb

Lines changed: 94 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{
6969
"data": {
7070
"text/plain": [
71-
"<refinitiv.data._data.core.session._platform_session.PlatformSession at 0x1c6053b7100>"
71+
"<refinitiv.data._data.core.session._platform_session.PlatformSession at 0x178d344d490>"
7272
]
7373
},
7474
"execution_count": 2,
@@ -96,7 +96,74 @@
9696
"name": "#%%\n"
9797
}
9898
},
99-
"outputs": [],
99+
"outputs": [
100+
{
101+
"data": {
102+
"text/html": [
103+
"<div>\n",
104+
"<style scoped>\n",
105+
" .dataframe tbody tr th:only-of-type {\n",
106+
" vertical-align: middle;\n",
107+
" }\n",
108+
"\n",
109+
" .dataframe tbody tr th {\n",
110+
" vertical-align: top;\n",
111+
" }\n",
112+
"\n",
113+
" .dataframe thead th {\n",
114+
" text-align: right;\n",
115+
" }\n",
116+
"</style>\n",
117+
"<table border=\"1\" class=\"dataframe\">\n",
118+
" <thead>\n",
119+
" <tr style=\"text-align: right;\">\n",
120+
" <th></th>\n",
121+
" <th>Instruments</th>\n",
122+
" <th>BID</th>\n",
123+
" <th>ASK</th>\n",
124+
" </tr>\n",
125+
" </thead>\n",
126+
" <tbody>\n",
127+
" <tr>\n",
128+
" <th>0</th>\n",
129+
" <td>EUR=</td>\n",
130+
" <td>1.1827</td>\n",
131+
" <td>1.183</td>\n",
132+
" </tr>\n",
133+
" <tr>\n",
134+
" <th>1</th>\n",
135+
" <td>GBP=</td>\n",
136+
" <td>1.3739</td>\n",
137+
" <td>1.3743</td>\n",
138+
" </tr>\n",
139+
" <tr>\n",
140+
" <th>2</th>\n",
141+
" <td>JPY=</td>\n",
142+
" <td>111.43</td>\n",
143+
" <td>111.46</td>\n",
144+
" </tr>\n",
145+
" <tr>\n",
146+
" <th>3</th>\n",
147+
" <td>CAD=</td>\n",
148+
" <td>1.2414</td>\n",
149+
" <td>1.2418</td>\n",
150+
" </tr>\n",
151+
" </tbody>\n",
152+
"</table>\n",
153+
"</div>"
154+
],
155+
"text/plain": [
156+
" Instruments BID ASK\n",
157+
"0 EUR= 1.1827 1.183\n",
158+
"1 GBP= 1.3739 1.3743\n",
159+
"2 JPY= 111.43 111.46\n",
160+
"3 CAD= 1.2414 1.2418"
161+
]
162+
},
163+
"metadata": {},
164+
"output_type": "display_data"
165+
}
166+
],
100167
"source": [
101168
"# Define our RDP Snapshot Price object\n",
102169
"response = rd.content.pricing.Definition(\n",
@@ -105,7 +172,7 @@
105172
").get_data()\n",
106173
"\n",
107174
"if (response.is_success):\n",
108-
" response.data.df\n",
175+
" display(response.data.df)\n",
109176
"else:\n",
110177
" print(response.http_status)"
111178
]
@@ -154,37 +221,37 @@
154221
" <tr>\n",
155222
" <th>0</th>\n",
156223
" <td>EUR=</td>\n",
157-
" <td>1.1894</td>\n",
158-
" <td>1.1898</td>\n",
224+
" <td>1.1825</td>\n",
225+
" <td>1.1829</td>\n",
159226
" </tr>\n",
160227
" <tr>\n",
161228
" <th>1</th>\n",
162229
" <td>GBP=</td>\n",
163-
" <td>1.3883</td>\n",
164-
" <td>1.3887</td>\n",
230+
" <td>1.3739</td>\n",
231+
" <td>1.3743</td>\n",
165232
" </tr>\n",
166233
" <tr>\n",
167234
" <th>2</th>\n",
168235
" <td>JPY=</td>\n",
169-
" <td>110.43</td>\n",
170-
" <td>110.46</td>\n",
236+
" <td>111.44</td>\n",
237+
" <td>111.45</td>\n",
171238
" </tr>\n",
172239
" <tr>\n",
173240
" <th>3</th>\n",
174241
" <td>CAD=</td>\n",
175-
" <td>1.2375</td>\n",
176-
" <td>1.2379</td>\n",
242+
" <td>1.2414</td>\n",
243+
" <td>1.2418</td>\n",
177244
" </tr>\n",
178245
" </tbody>\n",
179246
"</table>\n",
180247
"</div>"
181248
],
182249
"text/plain": [
183250
" Instrument BID ASK\n",
184-
"0 EUR= 1.1894 1.1898\n",
185-
"1 GBP= 1.3883 1.3887\n",
186-
"2 JPY= 110.43 110.46\n",
187-
"3 CAD= 1.2375 1.2379"
251+
"0 EUR= 1.1825 1.1829\n",
252+
"1 GBP= 1.3739 1.3743\n",
253+
"2 JPY= 111.44 111.45\n",
254+
"3 CAD= 1.2414 1.2418"
188255
]
189256
},
190257
"execution_count": 4,
@@ -230,7 +297,7 @@
230297
{
231298
"data": {
232299
"text/plain": [
233-
"1.1894"
300+
"1.1825"
234301
]
235302
},
236303
"execution_count": 5,
@@ -250,7 +317,7 @@
250317
{
251318
"data": {
252319
"text/plain": [
253-
"1.1898"
320+
"1.1829"
254321
]
255322
},
256323
"execution_count": 6,
@@ -280,8 +347,8 @@
280347
"output_type": "stream",
281348
"text": [
282349
"JPY=\n",
283-
"\tBID : 110.43\n",
284-
"\tASK : 110.46\n"
350+
"\tBID : 111.44\n",
351+
"\tASK : 111.45\n"
285352
]
286353
}
287354
],
@@ -308,17 +375,17 @@
308375
"output_type": "stream",
309376
"text": [
310377
"EUR=\n",
311-
"\tBID : 1.1894\n",
312-
"\tASK : 1.1898\n",
378+
"\tBID : 1.1825\n",
379+
"\tASK : 1.1829\n",
313380
"GBP=\n",
314-
"\tBID : 1.3883\n",
315-
"\tASK : 1.3887\n",
381+
"\tBID : 1.3739\n",
382+
"\tASK : 1.3743\n",
316383
"JPY=\n",
317-
"\tBID : 110.43\n",
318-
"\tASK : 110.46\n",
384+
"\tBID : 111.44\n",
385+
"\tASK : 111.45\n",
319386
"CAD=\n",
320-
"\tBID : 1.2375\n",
321-
"\tASK : 1.2379\n"
387+
"\tBID : 1.2414\n",
388+
"\tASK : 1.2418\n"
322389
]
323390
}
324391
],

0 commit comments

Comments
 (0)