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: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,17 +42,17 @@ To install the latest stable version of the package from PyPI:
42
42
pip install -U databento
43
43
44
44
## Usage
45
-
The library needs to be configured with an access key from your account.
45
+
The library needs to be configured with an API key from your account.
46
46
[Sign up](https://databento.com/signup) for free and you will automatically
47
-
receive a set of access keys to start with. Each access key is a 28-character
48
-
string that can be found on the Access Keys page of your [Databento user portal](https://databento.com/platform/keys).
47
+
receive a set of API keys to start with. Each API key is a 28-character
48
+
string that can be found on the API Keys page of your [Databento user portal](https://databento.com/platform/keys).
49
49
50
50
A simple Databento application looks like this:
51
51
52
52
```python
53
53
import databento as db
54
54
55
-
client = db.Historical('YOUR_ACCESS_KEY')
55
+
client = db.Historical('YOUR_API_KEY')
56
56
data = client.timeseries.stream(
57
57
dataset='GLBX.MDP3',
58
58
start='2020-11-02T14:30',
@@ -61,7 +61,7 @@ data = client.timeseries.stream(
61
61
data.replay(callback=print) # market replay, with `print` as event handler
62
62
```
63
63
64
-
Replace `YOUR_ACCESS_KEY` with an actual access key, then run this program.
64
+
Replace `YOUR_API_KEY` with an actual API key, then run this program.
65
65
66
66
This uses `.replay()` to access the entire block of data
67
67
and dispatch each data event to an event handler. You can also use
@@ -72,15 +72,15 @@ df = data.to_df(pretty_ts=True, pretty_px=True) # to DataFrame, with pretty for
72
72
array = data.to_ndarray() # to ndarray
73
73
```
74
74
75
-
Note that the access key was also passed as a parameter, which is
76
-
[not recommended for production applications](https://docs0.databento.com/knowledge-base/new-users/securing-your-access-keys?historical=python&live=python).
77
-
Instead, you can leave out this parameter to pass your access key via the `DATABENTO_ACCESS_KEY` environment variable:
75
+
Note that the API key was also passed as a parameter, which is
76
+
[not recommended for production applications](https://docs0.databento.com/knowledge-base/new-users/securing-your-api-keys?historical=python&live=python).
77
+
Instead, you can leave out this parameter to pass your API key via the `DATABENTO_API_KEY` environment variable:
78
78
79
79
```python
80
80
import databento as db
81
81
82
-
client = db.Historical('YOUR_ACCESS_KEY') # pass as parameter
83
-
client = db.Historical() # pass as `DATABENTO_ACCESS_KEY` environment variable
82
+
client = db.Historical('YOUR_API_KEY')# pass as parameter
83
+
client = db.Historical() # pass as `DATABENTO_API_KEY` environment variable
0 commit comments