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
+38-22Lines changed: 38 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,18 @@ 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 for HTTP JSON and WebSocket connections.
16
18
- docs\TRKD_REST_with_Python.docx: A document that describes the trkd_authen.py and trkd_quote.py applications
17
19
20
+
All source code and scripts are provided under the Apache 2.0 license. Thye are provided AS IS with no warranty or guarantee of fit for purpose. See the project's LICENSE.md for details.
18
21
19
22
## Prerequisite
20
23
The following softwares are required to use this script
21
24
- Python 3
22
25
- The [requests](http://docs.python-requests.org/en/master/) library
26
+
- The [websocket-client](https://pypi.org/project/websocket-client/) library (*version 0.49 or greater*, for trkd_wsstreaming.py application only)
27
+
- The [python-dateutil](https://pypi.org/project/python-dateutil/) library (for trkd_wsstreaming.py application only)
23
28
24
29
All scripts support Python 3 and not compatible with Python 2.
25
30
@@ -34,46 +39,57 @@ The best way is via the pip package management tool
34
39
1. export <Python_folder>\Scripts to your OS PATH environment
35
40
2. call pip command to install requests
36
41
```
37
-
$>pip install requests
42
+
$>pip install -r requestments.txt
38
43
```
39
44
3. If you are behind proxy, set the proxy first
40
45
```
41
46
export https_proxy="http://<proxy.server>:<port>"
42
-
$>pip install requests
47
+
$>pip install -r requestments.txt
43
48
```
44
49
50
+
*Note*: If you aim to use only TRKD HTTP JSON services, you can just install requests library via a ```pip install requests``` command.
51
+
52
+
## References
53
+
For further details, please check out the following resources:
54
+
*[Thomson Reuters Knowledge Direct API page](https://developers.thomsonreuters.com/thomson-reuters-knowledge-direct-trkd) on the [Thomson Reuters Developer Community](https://developers.thomsonreuters.com/) web site.
55
+
*[Thomson Reuters Knowledge Direct API Catalog](https://www.trkd.thomsonreuters.com/SupportSite/RequestBuilder/requestbuilder.aspx) web site.
56
+
*[Elektron WebSocket API](https://developers.thomsonreuters.com/websocket-api) page on the [Thomson Reuters Developer Community](https://developers.thomsonreuters.com/) web site.
57
+
45
58
## Release Note
46
59
- Version 1: 6 Sep 2016
47
-
- trkd_authen.py
48
-
- trkd_quote.py
60
+
- trkd_authen.py.
61
+
- trkd_quote.py.
49
62
- Version 1.0.1: 7 Sep 2016
50
-
- trkd_newsheadline.py
63
+
- trkd_newsheadline.py.
51
64
- changed code structure to separate call http request
52
65
- Version 1.0.2: 19 Sep 2016
53
-
- trkd_newsstory.py
66
+
- trkd_newsstory.py.
54
67
- version 1.0.3: 22 Sep 2016
55
-
- trkd_intraday.py
56
-
- trkd_interday.py
57
-
- trkd_onlinereport.py
58
-
- trkd_chart.py
68
+
- trkd_intraday.py.
69
+
- trkd_interday.py.
70
+
- trkd_onlinereport.py.
71
+
- trkd_chart.py.
59
72
- version 1.0.4: 28 Oct 2016
60
-
- docs\TRKD_REST_with_Python.docx
61
-
- revise some code
73
+
- docs\TRKD_REST_with_Python.docx.
74
+
- revise some code.
62
75
- version 1.0.5: 27 Apr 2017
63
-
- revies README.md to support markdown
76
+
- revies README.md to support markdown.
64
77
- version 1.0.6: 3 May 2017
65
-
- revies README.md
66
-
- modify trkd_authen.py
67
-
- modify trkd_quote.py
78
+
- revies README.md.
79
+
- modify trkd_authen.py.
80
+
- modify trkd_quote.py.
68
81
- version 1.0.7: 9 May 2017
69
-
- revise README.md
70
-
- modify the rest of application files
82
+
- revise README.md.
83
+
- modify the rest of application files.
71
84
- version 1.0.7: 31 Aug 2017
72
85
- revise README.md
73
86
- version 1.0.8: 04 Sep 2017
74
-
- Port all scripts to support Python 3
87
+
- Port all scripts to support Python 3.
75
88
- Fix the issue that some scripts still send request message to the old REST endpoint.
76
89
- version 1.0.9: 26 Jan 2018
77
-
- Add debug log for checking outgoing message (disabled by default)
90
+
- Add debug log for checking outgoing message (disabled by default).
78
91
- version 1.0.10: 9 Aug 2018
79
-
- remove all ```is not None``` statements and make them a bit more **Pythonic**
92
+
- remove all ```is not None``` statements and make them a bit more **Pythonic**.
93
+
- version 1.0.11: January 2019
94
+
- Add trkd_wsstreaming.py application for TRKD Streaming service.
0 commit comments