Skip to content

Commit b635baa

Browse files
committed
Update file name to match it purpose
1 parent 4f4de7d commit b635baa

File tree

6 files changed

+81
-72
lines changed

6 files changed

+81
-72
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ COPY --from=builder /root/.local /root/.local
2424
COPY mrn_console_app.py .
2525

2626
#Run Python
27-
ENTRYPOINT ["python", "./mrn_console_app.py"]
27+
ENTRYPOINT ["python", "./mrn_console_rtds.py"]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Please see the full documentation of this example application in [this article](
1414

1515
**Update (As of May 2024)**:
1616
* The RTO console example (Authentication Version 1): Please check my colleague's [LSEG-API-Samples/Example.WebSocketAPI.Python.MRN.RTO](https://github.com/LSEG-API-Samples/Example.WebSocketAPI.Python.MRN.RTO) GitHub Repository.
17-
* The RTO notebook example (Authentication Version 1): *mrn_notebook_app_rto.ipynb* notebook file.
17+
* The RTO notebook example (Authentication Version 1): *mrn_notebook_app_rto_v1.ipynb* notebook file.
1818
- Special thanks to Neeranat Junsuriyawong from the Solutions Consultant team for the contribution to this RTO notebook example.
19-
* The deployed Real-Time Distribution System (RTDS) examples are *mrn_console_rtds.py* console application and *mrn_notebook_app.ipynb* notebook files.
19+
* The deployed Real-Time Distribution System (RTDS) examples are *mrn_console_rtds.py* console application and *mrn_notebook_app_rtds.ipynb* notebook files.
2020

2121
## <a id="mrn_prerequisite"></a>Prerequisite
2222

@@ -62,7 +62,7 @@ This example requires the following dependencies software and libraries.
6262
6. [Docker Engine - Community Edition](https://docs.docker.com/install/) (for running a console example in Docker only)
6363

6464
*Note:*
65-
- The Python example has been qualified with Python version Python 3.8.x.
65+
- The Python example has been qualified with Python version Python 3.10.x.
6666
- It is not advisable to change the Real-Time Distribution System configuration if you are not familiar with the configuration procedures. Please consult your Market Data administrator for any questions regarding the Real-Time Distribution System-MRN service configuration.
6767
- Please contact your LSEG representative to help you to access the RTO account, and services.
6868
- Please refer to the [pip installation guide page](https://pip.pypa.io/en/stable/installing/) if your environment does not have the [pip tool](https://pypi.org/project/pip/) installed.
@@ -285,7 +285,7 @@ News = {'altId': 'nIdw5d8Hwd', 'audiences': ['NP:CNRA', 'NP:IDXN'], 'body': 'Lap
285285
## <a id="references"></a>References
286286
287287
For further details, please check out the following resources:
288-
* [Real-Time Market Data APIs & Distribution page](https://developers.lseg.com/en/use-cases-catalog/refinitiv-real-time) on the [Refinitiv Developer Community](https://developers.lseg.com/) website.
288+
* [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.
289289
* [WebSocket API page](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api).
290290
* [Developer Webinar Recording: Introduction to Electron WebSocket API](https://www.youtube.com/watch?v=CDKWMsIQfaw).
291291
* [Introduction to Machine Readable News with WebSocket API](https://developers.lseg.com/en/article-catalog/article/introduction-machine-readable-news-elektron-websocket-api-refinitiv).

mrn_console_rto_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def print_commandline_usage_and_exit(exit_code):
502502
print('Failed to retrieve endpoints from Delivery Platform Service Discovery. Exiting...')
503503
sys.exit(1)
504504

505-
# Start websocket handshake; create two sessions when the hotstandby parameter is specified.
505+
# Start websocket handshake;
506506
session1 = WebSocketSession("Session1", hostList[0])
507507
session1.connect()
508508

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@
88
"source": [
99
"# WebSocket API MRN Example with Python - Deployed RTDS Connection\n",
1010
"\n",
11-
"**Last Update**: Dec 2021\n",
11+
"**Last Update**: May 2024\n",
1212
"\n",
1313
"## Prerequisite\n",
1414
"\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",
1616
"\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",
1818
"\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",
2020
"\n",
2121
"\n",
2222
"## Machine Readable News Overview\n",
2323
"\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",
2525
"\n",
2626
"MRN aims for replacing the legacy News 2K (N2_UBMS and N2_STORY).\n",
2727
"\n",
2828
"### MRN Data behavior\n",
2929
"\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",
3131
"\n",
3232
"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",
3434
"* WebSocket connection: Base64 ASCII string\n",
3535
"\n",
3636
"The data goes through the following series of transformations:\n",
@@ -78,15 +78,15 @@
7878
"cell_type": "markdown",
7979
"metadata": {},
8080
"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",
8282
"\n",
8383
"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)."
9090
]
9191
},
9292
{
@@ -5669,19 +5669,19 @@
56695669
"## References\n",
56705670
"\n",
56715671
"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",
56745674
"* [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",
56835683
"\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)."
56855685
]
56865686
},
56875687
{
@@ -5708,7 +5708,7 @@
57085708
"name": "python",
57095709
"nbconvert_exporter": "python",
57105710
"pygments_lexer": "ipython3",
5711-
"version": "3.8.12"
5711+
"version": "3.10.14"
57125712
}
57135713
},
57145714
"nbformat": 4,

0 commit comments

Comments
 (0)