Skip to content

Commit 31cc628

Browse files
committed
example6
1 parent b7559a4 commit 31cc628

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/source/tutorial/installation.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,22 @@ This method prevents the accidental exposure of sensitive credentials, especiall
7474

7575
Create a file named ``config.ini`` and structure it as follows:
7676

77+
.. .. code-block:: python
78+
.. email = 'your-email@example.com'
79+
.. api_key = 'your-secret-api-key'
7780
.. code-block:: python
78-
email = 'your-email@example.com'
79-
api_key = 'your-secret-api-key'
80-
81+
:linenos:
82+
import configparser
83+
import moabdb as mdb
84+
8185
**Using Credentials from the Config File in Python**
8286

8387
With an API key and subscription, intraday data is available.
8488
To access intraday data, you must first retrieve your
8589
credentials from the config file and then login with your API key:
8690

8791
.. code-block:: python
88-
92+
:linenos:
8993
import configparser
9094
import moabdb as mdb
9195

0 commit comments

Comments
 (0)