Skip to content

Commit 0d17dee

Browse files
committed
minor tweaks and changes - Plus new EndPoint notebooks
Some interface changes and the new Endpoint notebooks
1 parent 547042a commit 0d17dee

17 files changed

+5774
-2301
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,5 @@ dmypy.json
128128
# Pyre type checker
129129
.pyre/
130130
.vscode/settings.json
131+
2.Content/2.2-Pricing/refinitiv-data.config.json
132+
Configuration/refinitiv-data.config.json

1. Quick Start/1.0 - Sessions.ipynb

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 4,
67+
"execution_count": 11,
6868
"id": "51fad442",
6969
"metadata": {},
7070
"outputs": [],
7171
"source": [
72-
"session = rd.session.desktop.Definition(APP_KEY).get_session()"
72+
"session = rd.session.desktop.Definition(app_key = APP_KEY).get_session()"
7373
]
7474
},
7575
{
@@ -83,14 +83,14 @@
8383
},
8484
{
8585
"cell_type": "code",
86-
"execution_count": 2,
86+
"execution_count": 8,
8787
"id": "62485c4a",
8888
"metadata": {},
8989
"outputs": [],
9090
"source": [
9191
"session = rd.session.platform.Definition(\n",
92-
" APP_KEY, \n",
93-
" rd.session.platform.GrantPassword(\n",
92+
" app_key = APP_KEY, \n",
93+
" grant = rd.session.platform.GrantPassword(\n",
9494
" username = RDP_LOGIN, \n",
9595
" password = RDP_PASSWORD\n",
9696
" )\n",
@@ -108,13 +108,26 @@
108108
},
109109
{
110110
"cell_type": "code",
111-
"execution_count": 2,
111+
"execution_count": 9,
112112
"id": "76a9f215",
113113
"metadata": {},
114-
"outputs": [],
114+
"outputs": [
115+
{
116+
"ename": "AttributeError",
117+
"evalue": "Please provide 'grant' attribute or set 'username' and 'password' in config.",
118+
"output_type": "error",
119+
"traceback": [
120+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
121+
"\u001b[1;31mAttributeError\u001b[0m Traceback (most recent call last)",
122+
"\u001b[1;32m<ipython-input-9-ee4ef0316817>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m session = rd.session.platform.Definition(\n\u001b[0m\u001b[0;32m 2\u001b[0m \u001b[0mapp_key\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mAPP_KEY\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[0mdeployed_platform_host\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mDEPLOYED_PLATFORM_HOST\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[0mdeployed_platform_username\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mDEPLOYED_PLATFORM_USER_NAME\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 5\u001b[0m ).get_session()\n",
123+
"\u001b[1;32m~\\Anaconda3\\envs\\dev6\\lib\\site-packages\\refinitiv\\data\\_data\\core\\session\\_platform_session_definition.py\u001b[0m in \u001b[0;36m__init__\u001b[1;34m(self, session_name, app_key, grant, signon_control, deployed_platform_host, deployed_platform_username, dacs_position, dacs_application_id)\u001b[0m\n\u001b[0;32m 93\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 94\u001b[0m \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mgrant\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mis_valid\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 95\u001b[1;33m raise AttributeError(\n\u001b[0m\u001b[0;32m 96\u001b[0m \u001b[1;34m\"Please provide 'grant' attribute or set 'username' and 'password' in config.\"\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 97\u001b[0m )\n",
124+
"\u001b[1;31mAttributeError\u001b[0m: Please provide 'grant' attribute or set 'username' and 'password' in config."
125+
]
126+
}
127+
],
115128
"source": [
116129
"session = rd.session.platform.Definition(\n",
117-
" APP_KEY, \n",
130+
" app_key = APP_KEY, \n",
118131
" deployed_platform_host = DEPLOYED_PLATFORM_HOST,\n",
119132
" deployed_platform_username = DEPLOYED_PLATFORM_USER_NAME\n",
120133
").get_session()"
@@ -160,21 +173,10 @@
160173
},
161174
{
162175
"cell_type": "code",
163-
"execution_count": 3,
176+
"execution_count": null,
164177
"id": "5eb4432c",
165178
"metadata": {},
166-
"outputs": [
167-
{
168-
"data": {
169-
"text/plain": [
170-
"<State.Open: 3>"
171-
]
172-
},
173-
"execution_count": 3,
174-
"metadata": {},
175-
"output_type": "execute_result"
176-
}
177-
],
179+
"outputs": [],
178180
"source": [
179181
"session.open()"
180182
]
@@ -212,7 +214,7 @@
212214
},
213215
{
214216
"cell_type": "code",
215-
"execution_count": 4,
217+
"execution_count": null,
216218
"id": "f628d577",
217219
"metadata": {},
218220
"outputs": [],
@@ -266,17 +268,17 @@
266268
{
267269
"cell_type": "code",
268270
"execution_count": null,
269-
"id": "e144b211",
271+
"id": "52567fb6-86e6-4661-b09e-041fceef1cd2",
270272
"metadata": {},
271273
"outputs": [],
272274
"source": []
273275
}
274276
],
275277
"metadata": {
276278
"kernelspec": {
277-
"display_name": "RevData39",
279+
"display_name": "rddev6",
278280
"language": "python",
279-
"name": "rd39"
281+
"name": "rddev6"
280282
},
281283
"language_info": {
282284
"codemirror_mode": {
@@ -288,7 +290,7 @@
288290
"name": "python",
289291
"nbconvert_exporter": "python",
290292
"pygments_lexer": "ipython3",
291-
"version": "3.9.4"
293+
"version": "3.8.10"
292294
}
293295
},
294296
"nbformat": 4,

0 commit comments

Comments
 (0)