|
66 | 66 | }, |
67 | 67 | { |
68 | 68 | "cell_type": "code", |
69 | | - "execution_count": 2, |
| 69 | + "execution_count": 1, |
70 | 70 | "metadata": {}, |
71 | 71 | "outputs": [], |
72 | 72 | "source": [ |
|
85 | 85 | }, |
86 | 86 | { |
87 | 87 | "cell_type": "code", |
88 | | - "execution_count": 3, |
| 88 | + "execution_count": 2, |
89 | 89 | "metadata": {}, |
90 | 90 | "outputs": [ |
91 | 91 | { |
92 | 92 | "data": { |
93 | 93 | "text/plain": [ |
94 | | - "<refinitiv.data.session.Definition object at 0x7f8bf818ecd0 {name='workspace'}>" |
| 94 | + "<refinitiv.data.session.Definition object at 0x7f7aae240e80 {name='workspace'}>" |
95 | 95 | ] |
96 | 96 | }, |
97 | | - "execution_count": 3, |
| 97 | + "execution_count": 2, |
98 | 98 | "metadata": {}, |
99 | 99 | "output_type": "execute_result" |
100 | 100 | } |
|
119 | 119 | }, |
120 | 120 | { |
121 | 121 | "cell_type": "code", |
122 | | - "execution_count": 4, |
| 122 | + "execution_count": 3, |
123 | 123 | "metadata": {}, |
124 | 124 | "outputs": [ |
125 | 125 | { |
|
143 | 143 | " <thead>\n", |
144 | 144 | " <tr style=\"text-align: right;\">\n", |
145 | 145 | " <th></th>\n", |
146 | | - " <th>DocumentTitle</th>\n", |
147 | 146 | " <th>BusinessEntity</th>\n", |
148 | | - " <th>SEDOL</th>\n", |
| 147 | + " <th>DocumentTitle</th>\n", |
149 | 148 | " <th>CUSIP</th>\n", |
| 149 | + " <th>SEDOL</th>\n", |
150 | 150 | " </tr>\n", |
151 | 151 | " </thead>\n", |
152 | 152 | " <tbody>\n", |
153 | 153 | " <tr>\n", |
154 | 154 | " <th>MSFT.O</th>\n", |
155 | | - " <td>Microsoft Corp, Ordinary Share</td>\n", |
156 | 155 | " <td>INSTRUMENTxEQUITY</td>\n", |
157 | | - " <td><NA></td>\n", |
| 156 | + " <td>Microsoft Corp, Ordinary Share</td>\n", |
158 | 157 | " <td>594918104</td>\n", |
| 158 | + " <td><NA></td>\n", |
159 | 159 | " </tr>\n", |
160 | 160 | " <tr>\n", |
161 | 161 | " <th>AAPL.O</th>\n", |
162 | | - " <td>Apple Inc, Ordinary Share</td>\n", |
163 | 162 | " <td>INSTRUMENTxEQUITY</td>\n", |
164 | | - " <td><NA></td>\n", |
| 163 | + " <td>Apple Inc, Ordinary Share</td>\n", |
165 | 164 | " <td>037833100</td>\n", |
| 165 | + " <td><NA></td>\n", |
166 | 166 | " </tr>\n", |
167 | 167 | " <tr>\n", |
168 | 168 | " <th>GOOG.O</th>\n", |
169 | | - " <td>Alphabet Inc, Ordinary Share</td>\n", |
170 | 169 | " <td>INSTRUMENTxEQUITY</td>\n", |
171 | | - " <td><NA></td>\n", |
| 170 | + " <td>Alphabet Inc, Ordinary Share</td>\n", |
172 | 171 | " <td>02079K107</td>\n", |
| 172 | + " <td><NA></td>\n", |
173 | 173 | " </tr>\n", |
174 | 174 | " <tr>\n", |
175 | 175 | " <th>KBANK.BK</th>\n", |
176 | | - " <td>Kasikornbank PCL, Ordinary Share</td>\n", |
177 | 176 | " <td>INSTRUMENTxEQUITY</td>\n", |
178 | | - " <td>6888783</td>\n", |
| 177 | + " <td>Kasikornbank PCL, Ordinary Share</td>\n", |
179 | 178 | " <td><NA></td>\n", |
| 179 | + " <td>6888783</td>\n", |
180 | 180 | " </tr>\n", |
181 | 181 | " <tr>\n", |
182 | 182 | " <th>SCC.BK</th>\n", |
183 | | - " <td>Siam Cement PCL, Ordinary Share</td>\n", |
184 | 183 | " <td>INSTRUMENTxEQUITY</td>\n", |
185 | | - " <td>6609917</td>\n", |
| 184 | + " <td>Siam Cement PCL, Ordinary Share</td>\n", |
186 | 185 | " <td><NA></td>\n", |
| 186 | + " <td>6609917</td>\n", |
187 | 187 | " </tr>\n", |
188 | 188 | " </tbody>\n", |
189 | 189 | "</table>\n", |
190 | 190 | "</div>" |
191 | 191 | ], |
192 | 192 | "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", |
199 | 199 | "\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 " |
206 | 206 | ] |
207 | 207 | }, |
208 | | - "execution_count": 4, |
| 208 | + "execution_count": 3, |
209 | 209 | "metadata": {}, |
210 | 210 | "output_type": "execute_result" |
211 | 211 | } |
212 | 212 | ], |
213 | 213 | "source": [ |
214 | 214 | "response = search.lookup.Definition(\n", |
215 | | - " view=search.SearchViews.INSTRUMENTS, # Required parameter\n", |
| 215 | + " view=search.Views.INSTRUMENTS, # Required parameter\n", |
216 | 216 | " scope=\"RIC\", # Required parameter\n", |
217 | 217 | " terms=\"MSFT.O,AAPL.O,GOOG.O,IBM.N,KBANK.BK,SCC.BK\", # Required parameter\n", |
218 | 218 | " select=\"BusinessEntity,DocumentTitle,CUSIP,SEDOL\", # Required parameter\n", |
|
223 | 223 | }, |
224 | 224 | { |
225 | 225 | "cell_type": "code", |
226 | | - "execution_count": 5, |
| 226 | + "execution_count": 4, |
227 | 227 | "metadata": { |
228 | 228 | "scrolled": true |
229 | 229 | }, |
|
249 | 249 | " <thead>\n", |
250 | 250 | " <tr style=\"text-align: right;\">\n", |
251 | 251 | " <th></th>\n", |
252 | | - " <th>DocumentTitle</th>\n", |
253 | 252 | " <th>BusinessEntity</th>\n", |
| 253 | + " <th>DocumentTitle</th>\n", |
254 | 254 | " </tr>\n", |
255 | 255 | " </thead>\n", |
256 | 256 | " <tbody>\n", |
257 | 257 | " <tr>\n", |
258 | 258 | " <th>A</th>\n", |
259 | | - " <td>Agilent Technologies Inc, Ordinary Share, NYSE...</td>\n", |
260 | 259 | " <td>QUOTExEQUITY</td>\n", |
| 260 | + " <td>Agilent Technologies Inc, Ordinary Share, NYSE...</td>\n", |
261 | 261 | " </tr>\n", |
262 | 262 | " <tr>\n", |
263 | 263 | " <th>B</th>\n", |
264 | | - " <td>Barnes Group Inc, Ordinary Share, NYSE Consoli...</td>\n", |
265 | 264 | " <td>QUOTExEQUITY</td>\n", |
| 265 | + " <td>Barnes Group Inc, Ordinary Share, NYSE Consoli...</td>\n", |
266 | 266 | " </tr>\n", |
267 | 267 | " <tr>\n", |
268 | 268 | " <th>C</th>\n", |
269 | | - " <td>Citigroup Inc, Ordinary Share, NYSE Consolidated</td>\n", |
270 | 269 | " <td>QUOTExEQUITY</td>\n", |
| 270 | + " <td>Citigroup Inc, Ordinary Share, NYSE Consolidated</td>\n", |
271 | 271 | " </tr>\n", |
272 | 272 | " <tr>\n", |
273 | 273 | " <th>D</th>\n", |
274 | | - " <td>Dominion Energy Inc, Ordinary Share, NYSE Cons...</td>\n", |
275 | 274 | " <td>QUOTExEQUITY</td>\n", |
| 275 | + " <td>Dominion Energy Inc, Ordinary Share, NYSE Cons...</td>\n", |
276 | 276 | " </tr>\n", |
277 | 277 | " </tbody>\n", |
278 | 278 | "</table>\n", |
279 | 279 | "</div>" |
280 | 280 | ], |
281 | 281 | "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..." |
287 | 287 | ] |
288 | 288 | }, |
289 | | - "execution_count": 5, |
| 289 | + "execution_count": 4, |
290 | 290 | "metadata": {}, |
291 | 291 | "output_type": "execute_result" |
292 | 292 | } |
293 | 293 | ], |
294 | 294 | "source": [ |
295 | 295 | "response = search.lookup.Definition(\n", |
296 | | - " view=search.SearchViews.SEARCH_ALL, # Required parameter\n", |
| 296 | + " view=search.Views.SEARCH_ALL, # Required parameter\n", |
297 | 297 | " scope=\"RIC\", # Required parameter\n", |
298 | 298 | " terms=\"A,B,NOSUCHRIC,C,D\", # Required parameter\n", |
299 | 299 | " select=\"BusinessEntity,DocumentTitle\", # Required parameter\n", |
|
311 | 311 | }, |
312 | 312 | { |
313 | 313 | "cell_type": "code", |
314 | | - "execution_count": 6, |
| 314 | + "execution_count": 5, |
315 | 315 | "metadata": {}, |
316 | 316 | "outputs": [], |
317 | 317 | "source": [ |
|
328 | 328 | ], |
329 | 329 | "metadata": { |
330 | 330 | "kernelspec": { |
331 | | - "display_name": "Python 3", |
| 331 | + "display_name": "Python 3 (ipykernel)", |
332 | 332 | "language": "python", |
333 | 333 | "name": "python3" |
334 | 334 | }, |
|
342 | 342 | "name": "python", |
343 | 343 | "nbconvert_exporter": "python", |
344 | 344 | "pygments_lexer": "ipython3", |
345 | | - "version": "3.7.6" |
| 345 | + "version": "3.9.7" |
346 | 346 | } |
347 | 347 | }, |
348 | 348 | "nbformat": 4, |
|
0 commit comments