Skip to content

Commit 72bd127

Browse files
author
Wasin Waeosri
committed
Change logs:
1. Update README.md file to contain trkd_Wsstreaming.py file
1 parent 459ced5 commit 72bd127

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

README.md

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The [Thomson Reuters Knowledge Direct (TRKD) API](https://developers.thomsonreut
44

55
TRKD offers a wide range of Thomson Reuters' information and services delivered in a request-response scenario via web services using today's industry standard protocols (SOAP/XML and REST/JSON). Connectivity can be via HTTP and HTTPS, over the Internet or Delivery Direct. All data are snapshot (non-streaming) data.
66

7-
This is an example project that shows how to implement TRKD HTTP JSON Client with python. This project contains the following example scripts for each TRKD services
7+
This is an example project that shows how to implement TRKD HTTP JSON client and TRKD Streaming client with Python programming lanugage. This project contains the following example scripts for each TRKD services
88
- trkd_authen.py: An example application that shows how to authenticate with TRKD service
99
- trkd_quote.py: An example application that shows how to subscribe (all fields and specific fields) the Quote data from TRKD service
1010
- trkd_newsheadline.py: An example application that shows how to subscribe the News Headline data from TRKD service
@@ -13,13 +13,17 @@ This is an example project that shows how to implement TRKD HTTP JSON Client wit
1313
- trkd_interday.py: An example application that shows how to subscribe the Interday Time-series data from TRKD service
1414
- trkd_onlinereport.py: An example application that shows how to subscribe the Online Report data from TRKD service
1515
- trkd_chart.py: An example application that shows how to subscribe and download the Chart image data from TRKD service
16+
- trkd_wsstreaming.py: An example application that show how to subscribe the Quote data from TRKD Streming service via a WebSocket connection
17+
- requestments.txt: A requirement file contains a list of required libraries.
1618
- docs\TRKD_REST_with_Python.docx: A document that describes the trkd_authen.py and trkd_quote.py applications
1719

1820

1921
## Prerequisite
2022
The following softwares are required to use this script
2123
- Python 3
2224
- The [requests](http://docs.python-requests.org/en/master/) library
25+
- The [websocket-client](https://pypi.org/project/websocket-client/) library (*version 0.49 or greater*, for trkd_wsstreaming.py application only)
26+
- The [python-dateutil](https://pypi.org/project/python-dateutil/) library (for trkd_wsstreaming.py application only)
2327

2428
All scripts support Python 3 and not compatible with Python 2.
2529

@@ -34,46 +38,50 @@ The best way is via the pip package management tool
3438
1. export <Python_folder>\Scripts to your OS PATH environment
3539
2. call pip command to install requests
3640
```
37-
$>pip install requests
41+
$>pip install -r requestments.txt
3842
```
3943
3. If you are behind proxy, set the proxy first
4044
```
4145
export https_proxy="http://<proxy.server>:<port>"
42-
$>pip install requests
46+
$>pip install -r requestments.txt
4347
```
4448

49+
*Note*: If you aim to use only TRKD HTTP JSON services, you can just install requests library via ```pip install requests``` command.
50+
4551
## Release Note
4652
- Version 1: 6 Sep 2016
47-
- trkd_authen.py
48-
- trkd_quote.py
53+
- trkd_authen.py.
54+
- trkd_quote.py.
4955
- Version 1.0.1: 7 Sep 2016
50-
- trkd_newsheadline.py
56+
- trkd_newsheadline.py.
5157
- changed code structure to separate call http request
5258
- Version 1.0.2: 19 Sep 2016
53-
- trkd_newsstory.py
59+
- trkd_newsstory.py.
5460
- version 1.0.3: 22 Sep 2016
55-
- trkd_intraday.py
56-
- trkd_interday.py
57-
- trkd_onlinereport.py
58-
- trkd_chart.py
61+
- trkd_intraday.py.
62+
- trkd_interday.py.
63+
- trkd_onlinereport.py.
64+
- trkd_chart.py.
5965
- version 1.0.4: 28 Oct 2016
60-
- docs\TRKD_REST_with_Python.docx
61-
- revise some code
66+
- docs\TRKD_REST_with_Python.docx.
67+
- revise some code.
6268
- version 1.0.5: 27 Apr 2017
63-
- revies README.md to support markdown
69+
- revies README.md to support markdown.
6470
- version 1.0.6: 3 May 2017
65-
- revies README.md
66-
- modify trkd_authen.py
67-
- modify trkd_quote.py
71+
- revies README.md.
72+
- modify trkd_authen.py.
73+
- modify trkd_quote.py.
6874
- version 1.0.7: 9 May 2017
69-
- revise README.md
70-
- modify the rest of application files
75+
- revise README.md.
76+
- modify the rest of application files.
7177
- version 1.0.7: 31 Aug 2017
7278
- revise README.md
7379
- version 1.0.8: 04 Sep 2017
74-
- Port all scripts to support Python 3
80+
- Port all scripts to support Python 3.
7581
- Fix the issue that some scripts still send request message to the old REST endpoint.
7682
- version 1.0.9: 26 Jan 2018
77-
- Add debug log for checking outgoing message (disabled by default)
83+
- Add debug log for checking outgoing message (disabled by default).
7884
- version 1.0.10: 9 Aug 2018
79-
- remove all ```is not None``` statements and make them a bit more **Pythonic**
85+
- remove all ```is not None``` statements and make them a bit more **Pythonic**.
86+
- version 1.0.11: January 2019
87+
- Add trkd_wsstreaming.py application for TRKD Streaming service.

0 commit comments

Comments
 (0)