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: docs/source/tutorial/installation.rst
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -50,10 +50,10 @@ Try accessing data.
50
50
Advanced Data Access with API Key
51
51
=================================
52
52
53
-
Example 1: Manually Enter Credentials
54
-
-------------------------------------
53
+
Manually Enter Credentials
54
+
--------------------------
55
55
56
-
With an API key and subscription, intraday data is available. To access intraday data, you must first login with your API key:
56
+
With an API key and subscription, you can access additional data. To access the data you must first login with your API key.
57
57
58
58
.. code-block:: python
59
59
@@ -64,21 +64,19 @@ With an API key and subscription, intraday data is available. To access intraday
64
64
print(test_df)
65
65
66
66
67
-
Example 2: Use Config File for API Key
68
-
--------------------------------------
67
+
Use Config File for API Key
68
+
---------------------------
69
69
70
-
**Example 2: Use Config File for API Credentials**:
71
-
72
-
Instead of hardcoding your email and API key in the code, a safer practice is to store them in a configuration file. This method prevents the accidental exposure of sensitive credentials, especially if sharing or publishing your code.
70
+
Instead of hardcoding your email and API key in the code, a safer practice is to store them in a configuration file.
71
+
This method prevents the accidental exposure of sensitive credentials, especially if sharing or publishing your code.
73
72
74
73
**Config File Setup**
75
74
76
75
Create a file named ``config.ini`` and structure it as follows:
77
76
78
77
.. code-block:: python
79
-
[Credentials]
80
-
email = your-email@example.com
81
-
api_key = your-secret-api-key
78
+
email ='your-email@example.com'
79
+
api_key ='your-secret-api-key'
82
80
83
81
**Using Credentials from the Config File in Python**
0 commit comments