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
Encourage users to rely on setting their api key via an environment
variable or a local file instead of following the sample code's bad
practice of setting the api key inline.
Signed-off-by: Jamie Couture <jamie.couture@nasdaq.com>
Copy file name to clipboardExpand all lines: FOR_ANALYSTS.md
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,9 @@ This quick guide offers convenient ways to retrieve individual datasets or datat
4
4
5
5
## Retrieving Data
6
6
7
-
Retrieving data can be achieved easily using these methods `nasdaqdatalink.get` for datasets, `nasdaqdatalink.get_table` for datatables and `nasdaqdatalink.get_point_in_time` for point in time data. In all cases we strongly recommend that you set your api key via:
7
+
Retrieving data can be achieved easily using these methods `nasdaqdatalink.get` for datasets, `nasdaqdatalink.get_table` for datatables and `nasdaqdatalink.get_point_in_time` for point in time data.
We strongly recommend that you set your api key using [environment variable](README.md#Local-API-Key-Environment-Variable) or [local file options](README.md#Local-API-Key-file).
13
10
14
11
### Datasets
15
12
@@ -43,7 +40,7 @@ The following additional parameters can be specified for a dataset call:
43
40
44
41
| Option | Explanation | Example | Description |
45
42
|--------|-------------|---------|-------------|
46
-
| api_key | Your access key |`api_key='tEsTkEy123456789'`| Used to identify who you are and provide more access. Only required if not set via `nasdaqdatalink.ApiConfig.api_key=`|
43
+
| api_key | Your access key |`api_key='tEsTkEy123456789'`| Used to identify who you are and provide more access. |
47
44
|\<filter / transformation parameter\>| A parameter which filters or transforms the resulting data |`start_date='2010-01-01`| For a full list see our [api docs](https://docs.data.nasdaq.com/docs)|
48
45
49
46
For more information on how to use and manipulate the resulting data see the [pandas documentation](http://pandas.pydata.org/).
@@ -168,7 +165,7 @@ The following additional parameters can be specified for a datatable call:
168
165
169
166
| Option | Explanation | Example | Description |
170
167
|---|---|---|---|
171
-
| api_key | Your access key |`api_key='tEsTkEy123456789'`| Used to identify who you are and provide more access. Only required if not set via `nasdaqdatalink.ApiConfig.api_key=`|
168
+
| api_key | Your access key |`api_key='tEsTkEy123456789'`| Used to identify who you are and provide more access. |
172
169
|\<filter / transformation parameter\>| A parameter which filters or transforms the resulting data |`start_date='2010-01-01'`| For a full list see our [api docs](https://docs.data.nasdaq.com/docs)|
173
170
| paginate | Wether to autoamtically paginate data |`paginate=True`| Will paginate through the first few pages of data automatically and merge them together in a larger output format. |
In the following sections, `params={}` represents optional query parameters that can be passed into each call. For more detail on available query parameters please see the [API Documentation](https://docs.data.nasdaq.com/docs).
19
12
13
+
We strongly recommend that you set your api key using [environment variable](README.md#Local-API-Key-Environment-Variable) or [local file options](README.md#Local-API-Key-file).
14
+
20
15
### Dataset
21
16
22
17
A dataset's data can be queried through the dataset object. For example:
Copy file name to clipboardExpand all lines: README.md
+7-19Lines changed: 7 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,8 @@ pip3 install nasdaq-data-link
27
27
| retry_backoff_factor | Determines the amount of time in seconds that should be waited before attempting another retry. Note that this factor is exponential so a `retry_backoff_factor` of 0.5 will cause waits of [0.5, 1, 2, 4, etc]. Only used if `use_retries` is True | 0.5
28
28
| retry_status_codes | A list of HTTP status codes which will trigger a retry to occur. Only used if `use_retries` is True| [429, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511]
Our API can provide more than just data. It can also be used to search and provide metadata or to programmatically retrieve data. For these more advanced techniques please follow our [Detailed Method Guide](./FOR_DEVELOPERS.md).
0 commit comments