Skip to content

Commit b7559a4

Browse files
committed
example5
1 parent e584db1 commit b7559a4

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

docs/source/tutorial/installation.rst

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Try accessing data.
5050
Advanced Data Access with API Key
5151
=================================
5252

53-
Example 1: Manually Enter Credentials
54-
-------------------------------------
53+
Manually Enter Credentials
54+
--------------------------
5555

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.
5757

5858
.. code-block:: python
5959
@@ -64,21 +64,19 @@ With an API key and subscription, intraday data is available. To access intraday
6464
print(test_df)
6565
6666
67-
Example 2: Use Config File for API Key
68-
--------------------------------------
67+
Use Config File for API Key
68+
---------------------------
6969

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.
7372

7473
**Config File Setup**
7574

7675
Create a file named ``config.ini`` and structure it as follows:
7776

7877
.. 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'
8280
8381
**Using Credentials from the Config File in Python**
8482

0 commit comments

Comments
 (0)