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
+30-22Lines changed: 30 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The [Thomson Reuters Knowledge Direct (TRKD) API](https://developers.thomsonreut
4
4
5
5
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.
6
6
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
8
8
- trkd_authen.py: An example application that shows how to authenticate with TRKD service
9
9
- trkd_quote.py: An example application that shows how to subscribe (all fields and specific fields) the Quote data from TRKD service
10
10
- 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
13
13
- trkd_interday.py: An example application that shows how to subscribe the Interday Time-series data from TRKD service
14
14
- trkd_onlinereport.py: An example application that shows how to subscribe the Online Report data from TRKD service
15
15
- 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.
16
18
- docs\TRKD_REST_with_Python.docx: A document that describes the trkd_authen.py and trkd_quote.py applications
17
19
18
20
19
21
## Prerequisite
20
22
The following softwares are required to use this script
21
23
- Python 3
22
24
- 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)
23
27
24
28
All scripts support Python 3 and not compatible with Python 2.
25
29
@@ -34,46 +38,50 @@ The best way is via the pip package management tool
34
38
1. export <Python_folder>\Scripts to your OS PATH environment
35
39
2. call pip command to install requests
36
40
```
37
-
$>pip install requests
41
+
$>pip install -r requestments.txt
38
42
```
39
43
3. If you are behind proxy, set the proxy first
40
44
```
41
45
export https_proxy="http://<proxy.server>:<port>"
42
-
$>pip install requests
46
+
$>pip install -r requestments.txt
43
47
```
44
48
49
+
*Note*: If you aim to use only TRKD HTTP JSON services, you can just install requests library via ```pip install requests``` command.
50
+
45
51
## Release Note
46
52
- Version 1: 6 Sep 2016
47
-
- trkd_authen.py
48
-
- trkd_quote.py
53
+
- trkd_authen.py.
54
+
- trkd_quote.py.
49
55
- Version 1.0.1: 7 Sep 2016
50
-
- trkd_newsheadline.py
56
+
- trkd_newsheadline.py.
51
57
- changed code structure to separate call http request
52
58
- Version 1.0.2: 19 Sep 2016
53
-
- trkd_newsstory.py
59
+
- trkd_newsstory.py.
54
60
- 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.
59
65
- 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.
62
68
- version 1.0.5: 27 Apr 2017
63
-
- revies README.md to support markdown
69
+
- revies README.md to support markdown.
64
70
- 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.
68
74
- 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.
71
77
- version 1.0.7: 31 Aug 2017
72
78
- revise README.md
73
79
- version 1.0.8: 04 Sep 2017
74
-
- Port all scripts to support Python 3
80
+
- Port all scripts to support Python 3.
75
81
- Fix the issue that some scripts still send request message to the old REST endpoint.
76
82
- 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).
78
84
- 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