Skip to content

Commit 47bfc0a

Browse files
author
Olivier Davant
committed
Examples, Quick Start guide and Tutorials update for 1.0.0b20
1 parent b947ad1 commit 47bfc0a

11 files changed

+1796
-2125
lines changed

Examples/2-Content/2.06-Search/EX-2.06.01-Search.ipynb

Lines changed: 454 additions & 429 deletions
Large diffs are not rendered by default.

Examples/2-Content/2.06-Search/EX-2.06.02-Search-Lookup.ipynb

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -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 0x7f8bf818ecd0 {name='workspace'}>"
94+
"<refinitiv.data.session.Definition object at 0x7f7aae240e80 {name='workspace'}>"
9595
]
9696
},
97-
"execution_count": 3,
97+
"execution_count": 2,
9898
"metadata": {},
9999
"output_type": "execute_result"
100100
}
@@ -119,7 +119,7 @@
119119
},
120120
{
121121
"cell_type": "code",
122-
"execution_count": 4,
122+
"execution_count": 3,
123123
"metadata": {},
124124
"outputs": [
125125
{
@@ -143,76 +143,76 @@
143143
" <thead>\n",
144144
" <tr style=\"text-align: right;\">\n",
145145
" <th></th>\n",
146-
" <th>DocumentTitle</th>\n",
147146
" <th>BusinessEntity</th>\n",
148-
" <th>SEDOL</th>\n",
147+
" <th>DocumentTitle</th>\n",
149148
" <th>CUSIP</th>\n",
149+
" <th>SEDOL</th>\n",
150150
" </tr>\n",
151151
" </thead>\n",
152152
" <tbody>\n",
153153
" <tr>\n",
154154
" <th>MSFT.O</th>\n",
155-
" <td>Microsoft Corp, Ordinary Share</td>\n",
156155
" <td>INSTRUMENTxEQUITY</td>\n",
157-
" <td>&lt;NA&gt;</td>\n",
156+
" <td>Microsoft Corp, Ordinary Share</td>\n",
158157
" <td>594918104</td>\n",
158+
" <td>&lt;NA&gt;</td>\n",
159159
" </tr>\n",
160160
" <tr>\n",
161161
" <th>AAPL.O</th>\n",
162-
" <td>Apple Inc, Ordinary Share</td>\n",
163162
" <td>INSTRUMENTxEQUITY</td>\n",
164-
" <td>&lt;NA&gt;</td>\n",
163+
" <td>Apple Inc, Ordinary Share</td>\n",
165164
" <td>037833100</td>\n",
165+
" <td>&lt;NA&gt;</td>\n",
166166
" </tr>\n",
167167
" <tr>\n",
168168
" <th>GOOG.O</th>\n",
169-
" <td>Alphabet Inc, Ordinary Share</td>\n",
170169
" <td>INSTRUMENTxEQUITY</td>\n",
171-
" <td>&lt;NA&gt;</td>\n",
170+
" <td>Alphabet Inc, Ordinary Share</td>\n",
172171
" <td>02079K107</td>\n",
172+
" <td>&lt;NA&gt;</td>\n",
173173
" </tr>\n",
174174
" <tr>\n",
175175
" <th>KBANK.BK</th>\n",
176-
" <td>Kasikornbank PCL, Ordinary Share</td>\n",
177176
" <td>INSTRUMENTxEQUITY</td>\n",
178-
" <td>6888783</td>\n",
177+
" <td>Kasikornbank PCL, Ordinary Share</td>\n",
179178
" <td>&lt;NA&gt;</td>\n",
179+
" <td>6888783</td>\n",
180180
" </tr>\n",
181181
" <tr>\n",
182182
" <th>SCC.BK</th>\n",
183-
" <td>Siam Cement PCL, Ordinary Share</td>\n",
184183
" <td>INSTRUMENTxEQUITY</td>\n",
185-
" <td>6609917</td>\n",
184+
" <td>Siam Cement PCL, Ordinary Share</td>\n",
186185
" <td>&lt;NA&gt;</td>\n",
186+
" <td>6609917</td>\n",
187187
" </tr>\n",
188188
" </tbody>\n",
189189
"</table>\n",
190190
"</div>"
191191
],
192192
"text/plain": [
193-
" DocumentTitle BusinessEntity SEDOL \\\n",
194-
"MSFT.O Microsoft Corp, Ordinary Share INSTRUMENTxEQUITY <NA> \n",
195-
"AAPL.O Apple Inc, Ordinary Share INSTRUMENTxEQUITY <NA> \n",
196-
"GOOG.O Alphabet Inc, Ordinary Share INSTRUMENTxEQUITY <NA> \n",
197-
"KBANK.BK Kasikornbank PCL, Ordinary Share INSTRUMENTxEQUITY 6888783 \n",
198-
"SCC.BK Siam Cement PCL, Ordinary Share INSTRUMENTxEQUITY 6609917 \n",
193+
" BusinessEntity DocumentTitle CUSIP \\\n",
194+
"MSFT.O INSTRUMENTxEQUITY Microsoft Corp, Ordinary Share 594918104 \n",
195+
"AAPL.O INSTRUMENTxEQUITY Apple Inc, Ordinary Share 037833100 \n",
196+
"GOOG.O INSTRUMENTxEQUITY Alphabet Inc, Ordinary Share 02079K107 \n",
197+
"KBANK.BK INSTRUMENTxEQUITY Kasikornbank PCL, Ordinary Share <NA> \n",
198+
"SCC.BK INSTRUMENTxEQUITY Siam Cement PCL, Ordinary Share <NA> \n",
199199
"\n",
200-
" CUSIP \n",
201-
"MSFT.O 594918104 \n",
202-
"AAPL.O 037833100 \n",
203-
"GOOG.O 02079K107 \n",
204-
"KBANK.BK <NA> \n",
205-
"SCC.BK <NA> "
200+
" SEDOL \n",
201+
"MSFT.O <NA> \n",
202+
"AAPL.O <NA> \n",
203+
"GOOG.O <NA> \n",
204+
"KBANK.BK 6888783 \n",
205+
"SCC.BK 6609917 "
206206
]
207207
},
208-
"execution_count": 4,
208+
"execution_count": 3,
209209
"metadata": {},
210210
"output_type": "execute_result"
211211
}
212212
],
213213
"source": [
214214
"response = search.lookup.Definition(\n",
215-
" view=search.SearchViews.INSTRUMENTS, # Required parameter\n",
215+
" view=search.Views.INSTRUMENTS, # Required parameter\n",
216216
" scope=\"RIC\", # Required parameter\n",
217217
" terms=\"MSFT.O,AAPL.O,GOOG.O,IBM.N,KBANK.BK,SCC.BK\", # Required parameter\n",
218218
" select=\"BusinessEntity,DocumentTitle,CUSIP,SEDOL\", # Required parameter\n",
@@ -223,7 +223,7 @@
223223
},
224224
{
225225
"cell_type": "code",
226-
"execution_count": 5,
226+
"execution_count": 4,
227227
"metadata": {
228228
"scrolled": true
229229
},
@@ -249,51 +249,51 @@
249249
" <thead>\n",
250250
" <tr style=\"text-align: right;\">\n",
251251
" <th></th>\n",
252-
" <th>DocumentTitle</th>\n",
253252
" <th>BusinessEntity</th>\n",
253+
" <th>DocumentTitle</th>\n",
254254
" </tr>\n",
255255
" </thead>\n",
256256
" <tbody>\n",
257257
" <tr>\n",
258258
" <th>A</th>\n",
259-
" <td>Agilent Technologies Inc, Ordinary Share, NYSE...</td>\n",
260259
" <td>QUOTExEQUITY</td>\n",
260+
" <td>Agilent Technologies Inc, Ordinary Share, NYSE...</td>\n",
261261
" </tr>\n",
262262
" <tr>\n",
263263
" <th>B</th>\n",
264-
" <td>Barnes Group Inc, Ordinary Share, NYSE Consoli...</td>\n",
265264
" <td>QUOTExEQUITY</td>\n",
265+
" <td>Barnes Group Inc, Ordinary Share, NYSE Consoli...</td>\n",
266266
" </tr>\n",
267267
" <tr>\n",
268268
" <th>C</th>\n",
269-
" <td>Citigroup Inc, Ordinary Share, NYSE Consolidated</td>\n",
270269
" <td>QUOTExEQUITY</td>\n",
270+
" <td>Citigroup Inc, Ordinary Share, NYSE Consolidated</td>\n",
271271
" </tr>\n",
272272
" <tr>\n",
273273
" <th>D</th>\n",
274-
" <td>Dominion Energy Inc, Ordinary Share, NYSE Cons...</td>\n",
275274
" <td>QUOTExEQUITY</td>\n",
275+
" <td>Dominion Energy Inc, Ordinary Share, NYSE Cons...</td>\n",
276276
" </tr>\n",
277277
" </tbody>\n",
278278
"</table>\n",
279279
"</div>"
280280
],
281281
"text/plain": [
282-
" DocumentTitle BusinessEntity\n",
283-
"A Agilent Technologies Inc, Ordinary Share, NYSE... QUOTExEQUITY\n",
284-
"B Barnes Group Inc, Ordinary Share, NYSE Consoli... QUOTExEQUITY\n",
285-
"C Citigroup Inc, Ordinary Share, NYSE Consolidated QUOTExEQUITY\n",
286-
"D Dominion Energy Inc, Ordinary Share, NYSE Cons... QUOTExEQUITY"
282+
" BusinessEntity DocumentTitle\n",
283+
"A QUOTExEQUITY Agilent Technologies Inc, Ordinary Share, NYSE...\n",
284+
"B QUOTExEQUITY Barnes Group Inc, Ordinary Share, NYSE Consoli...\n",
285+
"C QUOTExEQUITY Citigroup Inc, Ordinary Share, NYSE Consolidated\n",
286+
"D QUOTExEQUITY Dominion Energy Inc, Ordinary Share, NYSE Cons..."
287287
]
288288
},
289-
"execution_count": 5,
289+
"execution_count": 4,
290290
"metadata": {},
291291
"output_type": "execute_result"
292292
}
293293
],
294294
"source": [
295295
"response = search.lookup.Definition(\n",
296-
" view=search.SearchViews.SEARCH_ALL, # Required parameter\n",
296+
" view=search.Views.SEARCH_ALL, # Required parameter\n",
297297
" scope=\"RIC\", # Required parameter\n",
298298
" terms=\"A,B,NOSUCHRIC,C,D\", # Required parameter\n",
299299
" select=\"BusinessEntity,DocumentTitle\", # Required parameter\n",
@@ -311,7 +311,7 @@
311311
},
312312
{
313313
"cell_type": "code",
314-
"execution_count": 6,
314+
"execution_count": 5,
315315
"metadata": {},
316316
"outputs": [],
317317
"source": [
@@ -328,7 +328,7 @@
328328
],
329329
"metadata": {
330330
"kernelspec": {
331-
"display_name": "Python 3",
331+
"display_name": "Python 3 (ipykernel)",
332332
"language": "python",
333333
"name": "python3"
334334
},
@@ -342,7 +342,7 @@
342342
"name": "python",
343343
"nbconvert_exporter": "python",
344344
"pygments_lexer": "ipython3",
345-
"version": "3.7.6"
345+
"version": "3.9.7"
346346
}
347347
},
348348
"nbformat": 4,

0 commit comments

Comments
 (0)