Skip to content

Commit a14b9b8

Browse files
author
Wasin Waeosri
committed
Merge branch 'notebook_interday_v5'
1. Add interday notebook 2. Add intraday notebook 3. Update README.md
2 parents 859e756 + adc61e9 commit a14b9b8

File tree

6 files changed

+2594
-15
lines changed

6 files changed

+2594
-15
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ interday_result.txt
99
interday_result2.txt
1010
interday_result3.txt
1111
interday_result4.txt
12-
notebook/test/
12+
notebook/test/
13+
notebook/.ipynb_checkpoints
14+
*/.ipynb_checkpoints/*

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TRKD offers a wide range of Refinitiv' information and services delivered in a r
66

77
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.
88

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]
1010

1111
## Application Files
1212
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
2121
- trkd_wsstreaming.py: An example application that show how to subscribe the Quote data from TRKD Streming service via a WebSocket connection
2222
- notebook folder:
2323
- *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
2426
- requestments.txt: A requirement file contains a list of required libraries for HTTP JSON and WebSocket connections.
2527
- docs\TRKD_REST_with_Python.docx: A document that describes the trkd_authen.py and trkd_quote.py applications
2628

@@ -33,7 +35,7 @@ The following softwares are required to use this script
3335
- The [requests](http://docs.python-requests.org/en/master/) library
3436
- The [websocket-client](https://pypi.org/project/websocket-client/) library (*version 0.49 or greater*, for trkd_wsstreaming.py application only)
3537
- 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)
3739

3840
All scripts support Python 3 and not compatible with Python 2.
3941

@@ -46,7 +48,7 @@ Run the script via the command line (or shell)
4648
$>python <application>.py
4749
```
4850

49-
## Optional - How to install requests
51+
## Optional - How to install libraries for console examples
5052
The best way is via the pip package management tool
5153
1. export <Python_folder>\Scripts to your OS PATH environment
5254
2. call pip command to install requests
@@ -61,6 +63,9 @@ The best way is via the pip package management tool
6163

6264
*Note*: If you aim to use only TRKD HTTP JSON services, you can just install requests library via a ```pip install requests``` command.
6365

66+
## Optional - How to install libraries for notebook examples
67+
Please follow the [classic Jupyter Notebook installation guide](https://jupyter.org/install) page.
68+
6469
## References
6570
For further details, please check out the following resources:
6671
* [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:
109114
- Change all scripts to print JSON message in beauty format.
110115
- version 1.5: July 2019
111116
- Add TRKD Authentication Jupyter Notebook.
117+
- version 1.5.1: July 2019
118+
- Add TRKD Interday and Intraday Jupyter Notebooks.

notebook/.ipynb_checkpoints/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

notebook/trkd_authentication.ipynb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"metadata": {},
2626
"outputs": [],
2727
"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",
2929
"\n",
3030
"# # Install requests package in a current Jupyter kernal\n",
3131
"# import sys\n",
@@ -38,7 +38,7 @@
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
41-
"# import required libraries\n",
41+
"# import requires libraries for HTTP Request and JSON Operation\n",
4242
"\n",
4343
"import requests\n",
4444
"import json"
@@ -62,12 +62,10 @@
6262
]
6363
},
6464
{
65-
"cell_type": "code",
66-
"execution_count": null,
65+
"cell_type": "markdown",
6766
"metadata": {},
68-
"outputs": [],
6967
"source": [
70-
"# main process"
68+
"## main process"
7169
]
7270
},
7371
{
@@ -239,11 +237,12 @@
239237
"cell_type": "markdown",
240238
"metadata": {},
241239
"source": [
242-
"## <a href=\"references\"></a>References\n",
240+
"## References\n",
243241
"For further details, please check out the following resources:\n",
244242
"* [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",
245243
"* [Thomson Reuters Knowledge Direct API Catalog](https://www.trkd.thomsonreuters.com/SupportSite/RequestBuilder/requestbuilder.aspx) web site.\n",
246244
"* 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",
245+
"* [TRKD Tutorial](https://developers.refinitiv.com/thomson-reuters-knowledge-direct-trkd/thomson-reuters-knowledge-direct-api-trkd-api/learning).\n",
247246
"\n",
248247
"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)."
249248
]

0 commit comments

Comments
 (0)