|
8 | 8 | "source": [ |
9 | 9 | "# WebSocket API MRN Example with Python - Deployed RTDS Connection\n", |
10 | 10 | "\n", |
11 | | - "**Last Update**: Dec 2021\n", |
| 11 | + "**Last Update**: May 2024\n", |
12 | 12 | "\n", |
13 | 13 | "## Prerequisite\n", |
14 | 14 | "\n", |
15 | | - "This article/notebook is focusing on the Refinitiv Machine Readable News (MRN) data processing only. I highly recommend you check the [WebSocket API Tutorials](https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api/tutorials) page if you are not familiar with WebSocket API. \n", |
| 15 | + "This article/notebook is focusing on the Machine Readable News (MRN) data processing only. I highly recommend you check the [WebSocket API Tutorials](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api/tutorials) page if you are not familiar with WebSocket API. \n", |
16 | 16 | "\n", |
17 | | - "The Tutorials page provides a step-by-step guide (connect, log in, request data, parse data, etc) for developers who are interested in developing a WebSocket application to consume real-time data from the deployed Refinitiv Real-Time Distribution System (RTDS). \n", |
| 17 | + "The Tutorials page provides a step-by-step guide (connect, log in, request data, parse data, etc) for developers who are interested in developing a WebSocket application to consume real-time data from the deployed Real-Time Distribution System (RTDS). \n", |
18 | 18 | "\n", |
19 | | - "If you are using the Refinitiv Real-Time - Optimized (RTO), please check the [mrn_notebook_app_rto.ipynb](./mrn_notebook_app_rto.ipynb) notebook file.\n", |
| 19 | + "If you are using the Real-Time - Optimized (RTO) Authentication Version 1, please check the [mrn_notebook_app_rto_v1.ipynb](./mrn_notebook_app_rto_v1.ipynb) notebook file.\n", |
20 | 20 | "\n", |
21 | 21 | "\n", |
22 | 22 | "## Machine Readable News Overview\n", |
23 | 23 | "\n", |
24 | | - "Refinitiv Machine Readable News (MRN) is an advanced service for automating the consumption and systematic analysis of news. It delivers deep historical news archives, ultra-low latency structured news and news analytics directly to your applications. This enables algorithms to exploit the power of news to seize opportunities, capitalize on market inefficiencies, and manage event risk.\n", |
| 24 | + "LSEG Machine Readable News (MRN) is an advanced service for automating the consumption and systematic analysis of news. It delivers deep historical news archives, ultra-low latency structured news and news analytics directly to your applications. This enables algorithms to exploit the power of news to seize opportunities, capitalize on market inefficiencies, and manage event risk.\n", |
25 | 25 | "\n", |
26 | 26 | "MRN aims for replacing the legacy News 2K (N2_UBMS and N2_STORY).\n", |
27 | 27 | "\n", |
28 | 28 | "### MRN Data behavior\n", |
29 | 29 | "\n", |
30 | | - "MRN is published over Refinitiv Real-Time using an Open Message Model (OMM) envelope in News Text Analytics domain messages. The Real-time News content set is made available over MRN_STORY RIC. The content data is contained in a FRAGMENT field that has been compressed and potentially fragmented across multiple messages, to reduce bandwidth and message size.\n", |
| 30 | + "MRN is published over Real-Time using an Open Message Model (OMM) envelope in News Text Analytics domain messages. The Real-time News content set is made available over MRN_STORY RIC. The content data is contained in a FRAGMENT field that has been compressed and potentially fragmented across multiple messages, to reduce bandwidth and message size.\n", |
31 | 31 | "\n", |
32 | 32 | "A FRAGMENT field has a different data type based on a connection type:\n", |
33 | | - "* RSSL connection (RTSDK [C++](https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-cc)/[Java](https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java)): BUFFER type\n", |
| 33 | + "* RSSL connection (RTSDK [C++](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-cc)/[Java](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java)/[C#](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-real-time-csharp-sdk): BUFFER type\n", |
34 | 34 | "* WebSocket connection: Base64 ASCII string\n", |
35 | 35 | "\n", |
36 | 36 | "The data goes through the following series of transformations:\n", |
|
78 | 78 | "cell_type": "markdown", |
79 | 79 | "metadata": {}, |
80 | 80 | "source": [ |
81 | | - "Please see a full documentation of this example application in [this article](https://developers.refinitiv.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
| 81 | + "Please see a full documentation of this example application in [this article](https://developers.lseg.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
82 | 82 | "\n", |
83 | 83 | "If you are not familiar with MRN concept, please visit the following resources which will give you a full explanation of the MRN data model and implementation logic:\n", |
84 | | - "* [Webinar Recording: Introduction to Machine Readable News](https://developers.refinitiv.com/news#news-accordion-nid-12045)\n", |
85 | | - "* [Introduction to Machine Readable News (MRN) with Enterprise Message API (EMA)](https://developers.refinitiv.com/en/article-catalog/article/introduction-machine-readable-news-mrn-elektron-message-api-ema).\n", |
86 | | - "* [MRN Data Models and Refinitiv Real-Time Implementation Guide](https://developers.refinitiv.com/en/api-catalog/elektron/elektron-sdk-java/documentation#mrn-data-models-implementation-guide).\n", |
87 | | - "* [Machine Readable News (MRN) & N2_UBMS Comparison and Migration Guide](https://developers.refinitiv.com/en/article-catalog/article/machine-readable-news-mrn-n2_ubms-comparison-and-migration-guide).\n", |
88 | | - "* [Introduction to Machine Readable News with WebSocket API](https://developers.refinitiv.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
89 | | - "* [How to get MRN News Analytics Data via WebSocket API](https://developers.refinitiv.com/en/article-catalog/article/how-to-get-mrn-news-analytics-data-via-elektron-websocket-api)." |
| 84 | + "* [Webinar Recording: Introduction to Machine Readable News](https://developers.lseg.com/news#news-accordion-nid-12045)\n", |
| 85 | + "* [Introduction to Machine Readable News (MRN) with Enterprise Message API (EMA)](https://developers.lseg.com/en/article-catalog/article/introduction-machine-readable-news-mrn-elektron-message-api-ema).\n", |
| 86 | + "* [MRN Data Models and the Real-Time Implementation Guide](https://developers.lseg.com/en/api-catalog/elektron/elektron-sdk-java/documentation#mrn-data-models-implementation-guide).\n", |
| 87 | + "* [Machine Readable News (MRN) & N2_UBMS Comparison and Migration Guide](https://developers.lseg.com/en/article-catalog/article/machine-readable-news-mrn-n2_ubms-comparison-and-migration-guide).\n", |
| 88 | + "* [Introduction to Machine Readable News with WebSocket API](https://developers.lseg.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
| 89 | + "* [How to get MRN News Analytics Data via WebSocket API](https://developers.lseg.com/en/article-catalog/article/how-to-get-mrn-news-analytics-data-via-elektron-websocket-api)." |
90 | 90 | ] |
91 | 91 | }, |
92 | 92 | { |
|
5669 | 5669 | "## References\n", |
5670 | 5670 | "\n", |
5671 | 5671 | "For further details, please check out the following resources:\n", |
5672 | | - "* [Refinitiv Real-Time & Distribution Family page](https://developers.refinitiv.com/en/use-cases-catalog/refinitiv-real-time) on the [Refinitiv Developer Community](https://developers.refinitiv.com/) website.\n", |
5673 | | - "* [WebSocket API page](https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api).\n", |
| 5672 | + "* [Real-Time Market Data APIs & Distribution page](https://developers.lseg.com/en/use-cases-catalog/refinitiv-real-time) on the [LSEG Developer Community](https://developers.lseg.com/) website.\n", |
| 5673 | + "* [WebSocket API page](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api).\n", |
5674 | 5674 | "* [Developer Webinar Recording: Introduction to Electron WebSocket API](https://www.youtube.com/watch?v=CDKWMsIQfaw).\n", |
5675 | | - "* [Introduction to Machine Readable News with WebSocket API](https://developers.refinitiv.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
5676 | | - "* [Machine Readable News (MRN) & N2_UBMS Comparison and Migration Guide](https://developers.refinitiv.com/en/article-catalog/article/machine-readable-news-mrn-n2_ubms-comparison-and-migration-guide).\n", |
5677 | | - "* [Introduction to Machine Readable News with WebSocket API](https://developers.refinitiv.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
5678 | | - "* [How to get MRN News Analytics Data via WebSocket API](https://developers.refinitiv.com/en/article-catalog/article/how-to-get-mrn-news-analytics-data-via-elektron-websocket-api).\n", |
5679 | | - "* [Introduction to Machine Readable News (MRN) with Enterprise Message API (EMA)](https://developers.refinitiv.com/en/article-catalog/article/introduction-machine-readable-news-mrn-elektron-message-api-ema).\n", |
5680 | | - "* [MRN Data Models and Real-Time SDK Implementation Guide](https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java/documentation#mrn-data-models-implementation-guide).\n", |
5681 | | - "* [MRN WebSocket JavaScript example on GitHub](https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.Javascript.NewsMonitor).\n", |
5682 | | - "* [MRN WebSocket C# NewsViewer example on GitHub](https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.CSharp.MRNWebSocketViewer).\n", |
| 5675 | + "* [Introduction to Machine Readable News with WebSocket API](https://developers.lseg.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
| 5676 | + "* [Machine Readable News (MRN) & N2_UBMS Comparison and Migration Guide](https://developers.lseg.com/en/article-catalog/article/machine-readable-news-mrn-n2_ubms-comparison-and-migration-guide).\n", |
| 5677 | + "* [Introduction to Machine Readable News (MRN) with Enterprise Message API (EMA)](https://developers.lseg.com/en/article-catalog/article/introduction-machine-readable-news-mrn-elektron-message-api-ema).\n", |
| 5678 | + "* [MRN Data Models and Real-Time SDK Implementation Guide](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java/documentation#mrn-data-models-implementation-guide).\n", |
| 5679 | + "* [MRN WebSocket JavaScript example on GitHub](https://github.com/LSEG-API-Samples/Example.WebSocketAPI.Javascript.NewsMonitor).\n", |
| 5680 | + "* [MRN WebSocket C# NewsViewer example on GitHub](https://github.com/LSEG-API-Samples/Example.WebSocketAPI.CSharp.MRNWebSocketViewer).\n", |
| 5681 | + "* [Developer Article: Introduction to Machine Readable News with WebSocket API](https://developers.lseg.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).\n", |
| 5682 | + "* [LSEG-API-Samples/Example.WebSocketAPI.Python.MRN.RTO](https://github.com/LSEG-API-Samples/Example.WebSocketAPI.Python.MRN.RTO) GitHub Repository.\n", |
5683 | 5683 | "\n", |
5684 | | - "For any question related to this example or WebSocket API, please use the Developer Community [Q&A Forum](https://community.developers.refinitiv.com/spaces/152/websocket-api.html)." |
| 5684 | + "For any questions related to this example or WebSocket API, please use the Developer Community [Q&A Forum](https://community.developers.refinitiv.com/spaces/152/websocket-api.html)." |
5685 | 5685 | ] |
5686 | 5686 | }, |
5687 | 5687 | { |
|
5708 | 5708 | "name": "python", |
5709 | 5709 | "nbconvert_exporter": "python", |
5710 | 5710 | "pygments_lexer": "ipython3", |
5711 | | - "version": "3.8.12" |
| 5711 | + "version": "3.10.14" |
5712 | 5712 | } |
5713 | 5713 | }, |
5714 | 5714 | "nbformat": 4, |
|
0 commit comments