You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-16Lines changed: 39 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@
9
9
10
10
**Important Note**:
11
11
12
-
- If you are using the Wealth solution (*Pricing Streaming Optimized Service* or *Pricing Streaming Service*), the products currently support Authentication Version 1 only (**As of May 2024**). Please contact your LSEG representative to verify if you are using Wealth or RTO solution.
13
-
- For RTO customers, please be informed that the Authentication Version 1 is currently limited support. Please refer to [PCN207737](https://my.refinitiv.com/content/mytr/en/product-notifications/details.html?id=PCN207737) and [PCN208969](https://my.refinitiv.com/content/mytr/en/product-notifications/details.html?id=PCN208969) documents for more detail.
12
+
- If you are using the Wealth solution (*Pricing Streaming Optimized Service* or *Pricing Streaming Service*), the products currently support Version 1 Authentication only (**As of May 2024**). Please contact your LSEG representative to verify if you are using Wealth or RTO solution.
13
+
- For RTO customers, please be informed that the Version 1 Authentication is currently limited support. Please refer to [PCN207737](https://my.refinitiv.com/content/mytr/en/product-notifications/details.html?id=PCN207737) and [PCN208969](https://my.refinitiv.com/content/mytr/en/product-notifications/details.html?id=PCN208969) documents for more detail.
14
14
15
15
This example shows how developers may use the [Websocket API for Pricing Streaming and Real-Time Service](https://developers.lseg.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api) aka Websocket API application to subscribe Machine Readable News (MRN) from LSEG Real-Time Distribution System (RTDS) and LSEG Real-Time Optimized (RTO). The example just connects to LSEG Real-Time platform via a WebSocket connection, then subscribes and displays MRN News data in a console or classic Jupyter Notebook. The project is implemented with Python language for both console and Jupyter Notebook applications, but the main concept for consuming and assembling MRN News messages are the same for all technologies.
16
16
@@ -20,13 +20,13 @@ Please see the full documentation of this example application in [this article](
20
20
21
21
**Update (As of June 2024)**:
22
22
23
-
- 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.
24
-
- The RTO notebook example (Authentication Version 1): *mrn_notebook_app_rto_v1.ipynb* notebook file.
23
+
- The RTO console example (Version 1 Authentication): 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.
24
+
- The RTO notebook example (Version 1 Authentication): *mrn_notebook_app_rto_v1.ipynb* notebook file.
25
25
- Special thanks to Neeranat Junsuriyawong from the Solutions Consultant team for the contribution to this RTO notebook example.
26
-
- The RTO console example (Authentication Version 2): *mrn_console_rto_v2.py* file
26
+
- The RTO console example (Version 2 Authentication): *mrn_console_rto_v2.py* file
27
27
- The deployed Real-Time Distribution System (RTDS) examples are *mrn_console_rtds.py* console application and *mrn_notebook_app_rtds.ipynb* notebook files.
28
28
29
-
You can find more information about the Authentication Version 2 from the following resources:
29
+
You can find more information about the Version 2 Authentication from the following resources:
30
30
31
31
-[Account authorization V1 to V2 migration cheat sheet](https://developers.lseg.com/en/article-catalog/article/account-authorization-v1-to-v2-migration-cheat-sheet) article.
32
32
-[Getting Started with Version 2 Authentication for Real-Time - Optimized: Overview](https://developers.lseg.com/en/article-catalog/article/getting-started-with-version-2-authentication-for-refinitiv-real) article.
@@ -90,11 +90,11 @@ This example requires the following dependencies software and libraries.
90
90
This example project contains the following files and folders
91
91
92
92
1.*mrn_console_rtds.py*: The example console application for the deployed RTDS connection file
93
-
2.*mrn_console_rto_v2.py*: The example console application for the RTO Authentication Version 2 connection file
94
-
3.*.env.example*: The example ```.env``` file for the RTO Authentication Version 2 connection.
93
+
2.*mrn_console_rto_v2.py*: The example console application for the RTO Version 2 Authentication connection file
94
+
3.*.env.example*: The example ```.env``` file for the RTO Version 2 Authentication connection.
95
95
4.*notebook_python/mrn_notebook_app.ipynb*: The example Jupyter Notebook application for the deployed RTDS connection file
96
-
5.*notebook_python/mrn_notebook_app_rto.ipynb*: The example Jupyter Notebook application for the RTO Authentication Version 1 connection file
97
-
6.*notebook_python/.env.example*: The example ```.env``` file for the RTO Authentication Version 1 connection notebook.
96
+
5.*notebook_python/mrn_notebook_app_rto.ipynb*: The example Jupyter Notebook application for the RTO Version 1 Authentication connection file
97
+
6.*notebook_python/.env.example*: The example ```.env``` file for the RTO Version 1 Authentication connection notebook.
98
98
7.*Dockerfile*: The example application Dockerfile
99
99
8.*requirements.txt*: The application dependencies configuration file
100
100
9. LICENSE.md: Project's license file
@@ -189,7 +189,7 @@ Please be informed that your Real-Time Advanced Data Hub and Real-Time Advanced
189
189
190
190
4. The application subscribes to ```MRN_STORNY``` RIC code from Real-Time Advanced Distribution Server by default. You can pass your interested MRN RIC code to ```--ric``` parameter on the application command line. The supported MRN RIC codes are ```MRN_STORY```, ```MRN_TRNA```, ```MRN_TRNA_DOC``` and ```MRN_TRSI``` only.
191
191
192
-
### <aid="rto_jupyter"></a>RTO Authentication Version 1 Jupyter Notebook example
192
+
### <aid="rto_jupyter"></a>RTO Version 1 Authentication Jupyter Notebook example
193
193
194
194
Please be informed that your RTO access credentials should have a permission to request MRN data.
195
195
@@ -203,7 +203,7 @@ Please be informed that your RTO access credentials should have a permission to
203
203
3. Go to the project's notebook folder. and create a file name ```.env``` with the following content.
204
204
205
205
```ini
206
-
# RTO Authentication Version 1 Credentials
206
+
# RTO Version 1 Authentication Credentials
207
207
RTO_USERNAME=<Your RTO Machine-ID>
208
208
RTO_PASSWORD=<Your RTO Password>
209
209
RTO_CLIENTID=<Your RTO App Key>
@@ -222,18 +222,41 @@ Please be informed that your RTO access credentials should have a permission to
222
222
223
223
5. Open *mrn_notebook_app_rto_v1.ipynb* Notebook document, then follow through each notebook cell.
224
224
225
-
### <aid="rto_console"></a>RTO Authentication Version 1 Console Example
225
+
### <aid="rto_console"></a>RTO Version 1 Authentication Console Example
226
226
227
227
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.
228
228
229
-
Alternatively, the *mrn_trna_console_rto.py* example of the [LSEG-API-Samples/Example.WebSocketAPI.Python.TRNA](https://github.com/LSEG-API-Samples/Example.WebSocketAPI.Python.MRN.TRNA) project also supports the MRN consumer with RTO (Authentication Version 1), but it subscribes to ```MRN_TRNA``` RIC code from the RTO by default.
229
+
Alternatively, the *mrn_trna_console_rto.py* example of the [LSEG-API-Samples/Example.WebSocketAPI.Python.TRNA](https://github.com/LSEG-API-Samples/Example.WebSocketAPI.Python.MRN.TRNA) project also supports the MRN consumer with RTO (Version 1 Authentication), but it subscribes to ```MRN_TRNA``` RIC code from the RTO by default.
230
230
231
-
### <aid="rtds_console_docker"></a>Bonus: RTO Authentication Version 2 console Docker example
231
+
### <aid="rto_v2_console"></a>RTO Version 2 Authentication Console Example
232
232
233
233
1. Create a file name ```.env``` at the root folder of the project and then add the following content to a file
234
234
235
235
```ini
236
-
## Authentication Version 2
236
+
## Version 2 Authentication
237
+
CLIENT_ID=CLIENT_ID_V2
238
+
CLIENT_SECRET=CLIENT_SECRET_V2
239
+
```
240
+
2. Activate MRN_RTO environment with this command in Anaconda Prompt
241
+
242
+
```bash
243
+
(base) $>conda activate MRN_RTO
244
+
```
245
+
246
+
3. Then you can run mrn_console_rto_v2.py application with the following command
247
+
248
+
```bash
249
+
(MRN_RTO) $> python mrn_console_rto_v2.py --ric <MRN_STORY by default>
250
+
```
251
+
252
+
4. The application subscribes to ```MRN_STORY``` RIC code from RTO by default. You can pass your interested MRN RIC code to ```--ric``` parameter on the application command line. The supported MRN RIC codes are ```MRN_STORY```, ```MRN_TRNA```, ```MRN_TRNA_DOC``` and ```MRN_TRSI``` only.
253
+
254
+
### <aid="rtds_console_docker"></a>Bonus: RTO Version 2 Authentication console Docker example
255
+
256
+
1. Create a file name ```.env``` at the root folder of the project and then add the following content to a file
0 commit comments