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
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ TRKD offers a wide range of Refinitiv' information and services delivered in a r
6
6
7
7
This is an example project that shows how to implement TRKD HTTP JSON client and TRKD Streaming client with Python programming lanugage. The project example are in both console and Jupyter Notebook applications.
8
8
9
-
*Note:* The Jupyter Notebook example does not contain all the same TRKD services service as console example yet. [TBD]
9
+
*Note:* The Jupyter Notebook example does not contain all the same TRKD services service as console examples yet. [TBD]
10
10
11
11
## Application Files
12
12
This project contains the following example scripts for each TRKD services
@@ -21,6 +21,8 @@ This project contains the following example scripts for each TRKD services
21
21
- trkd_wsstreaming.py: An example application that show how to subscribe the Quote data from TRKD Streming service via a WebSocket connection
22
22
- notebook folder:
23
23
- *notebook/trkd_authentication.ipynb*: A Jupyter Notebook TRKD Authentication service example
24
+
- *notebook/trkd_timeseries_interday.ipynb*: A Jupyter Notebook TRKD Time-Series Interday service example
25
+
- *notebook/trkd_timeseries_intraday.ipynb*: A Jupyter Notebook TRKD Time-Series Intraday service example
24
26
- requestments.txt: A requirement file contains a list of required libraries for HTTP JSON and WebSocket connections.
25
27
- docs\TRKD_REST_with_Python.docx: A document that describes the trkd_authen.py and trkd_quote.py applications
26
28
@@ -33,7 +35,7 @@ The following softwares are required to use this script
33
35
- The [requests](http://docs.python-requests.org/en/master/) library
34
36
- The [websocket-client](https://pypi.org/project/websocket-client/) library (*version 0.49 or greater*, for trkd_wsstreaming.py application only)
35
37
- The [python-dateutil](https://pypi.org/project/python-dateutil/) library (for trkd_wsstreaming.py application only)
36
-
-[Jupyter Notebook](https://jupyter.org/) runtime (for the Notebook example application)
38
+
-The [classic Jupyter Notebook](https://jupyter.org/) runtime (for the Notebook example application)
37
39
38
40
All scripts support Python 3 and not compatible with Python 2.
39
41
@@ -46,7 +48,7 @@ Run the script via the command line (or shell)
46
48
$>python <application>.py
47
49
```
48
50
49
-
## Optional - How to install requests
51
+
## Optional - How to install libraries for console examples
50
52
The best way is via the pip package management tool
51
53
1. export <Python_folder>\Scripts to your OS PATH environment
52
54
2. call pip command to install requests
@@ -61,6 +63,9 @@ The best way is via the pip package management tool
61
63
62
64
*Note*: If you aim to use only TRKD HTTP JSON services, you can just install requests library via a ```pip install requests``` command.
63
65
66
+
## Optional - How to install libraries for notebook examples
67
+
Please follow the [classic Jupyter Notebook installation guide](https://jupyter.org/install) page.
68
+
64
69
## References
65
70
For further details, please check out the following resources:
66
71
*[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.
@@ -109,3 +114,5 @@ For further details, please check out the following resources:
109
114
- Change all scripts to print JSON message in beauty format.
110
115
- version 1.5: July 2019
111
116
- Add TRKD Authentication Jupyter Notebook.
117
+
- version 1.5.1: July 2019
118
+
- Add TRKD Interday and Intraday Jupyter Notebooks.
Copy file name to clipboardExpand all lines: notebook/trkd_authentication.ipynb
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@
25
25
"metadata": {},
26
26
"outputs": [],
27
27
"source": [
28
-
"# #uncomment if you do not have requests and websocket-client (version 0.49 and above) installed\n",
28
+
"# #uncomment if you do not have requests installed\n",
29
29
"\n",
30
30
"# # Install requests package in a current Jupyter kernal\n",
31
31
"# import sys\n",
@@ -38,7 +38,7 @@
38
38
"metadata": {},
39
39
"outputs": [],
40
40
"source": [
41
-
"# import required libraries\n",
41
+
"# import requires libraries for HTTP Request and JSON Operation\n",
42
42
"\n",
43
43
"import requests\n",
44
44
"import json"
@@ -62,12 +62,10 @@
62
62
]
63
63
},
64
64
{
65
-
"cell_type": "code",
66
-
"execution_count": null,
65
+
"cell_type": "markdown",
67
66
"metadata": {},
68
-
"outputs": [],
69
67
"source": [
70
-
"# main process"
68
+
"## main process"
71
69
]
72
70
},
73
71
{
@@ -239,11 +237,12 @@
239
237
"cell_type": "markdown",
240
238
"metadata": {},
241
239
"source": [
242
-
"## <a href=\"references\"></a>References\n",
240
+
"## References\n",
243
241
"For further details, please check out the following resources:\n",
244
242
"* [Thomson Reuters Knowledge Direct API page](https://developers.refinitiv.com/thomson-reuters-knowledge-direct-trkd) on the [Refinitiv Developer Community](https://developers.thomsonreuters.com/) web site.\n",
245
243
"* [Thomson Reuters Knowledge Direct API Catalog](https://www.trkd.thomsonreuters.com/SupportSite/RequestBuilder/requestbuilder.aspx) web site.\n",
246
244
"* TRKD Article: [How to implement TRKD JSON application with Python chapter 1: the basic](https://developers.refinitiv.com/article/how-implement-trkd-json-application-python-chapter-1-basic)\n",
"For any question related to this tutorial or TRKD API, please use the Developer Community [Q&A Forum](https://community.developers.refinitiv.com/spaces/51/view.html)."
0 commit comments