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
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ The official Python client library for [Databento](https://databento.com).
10
10
11
11
Key features include:
12
12
- Fast, lightweight access to both live and historical data from [multiple markets](https://docs.databento.com/knowledge-base/new-users/venues-and-publishers?historical=python&live=python).
13
-
-[Multiple schemas](https://docs.databento.com/knowledge-base/new-users/list-of-supported-market-data-schemas?historical=python&live=python) such as MBO, MBP, top of book, OHLCV, last sale, and more.
13
+
-[Multiple schemas](https://docs.databento.com/knowledge-base/new-users/market-data-schemas?historical=python&live=python) such as MBO, MBP, top of book, OHLCV, last sale, and more.
14
14
-[Fully normalized](https://docs.databento.com/knowledge-base/new-users/normalization?historical=python&live=python), i.e. identical message schemas for both live and historical data, across multiple asset classes.
15
15
- Provides mappings between different symbology systems, including [smart symbology](https://docs.databento.com/reference-historical/basics/symbology?historical=python&live=python) for futures rollovers.
16
16
-[Point-in-time]() instrument definitions, free of look-ahead bias and retroactive adjustments.
17
17
- Reads and stores market data in an extremely efficient file format using [Databento Binary Encoding](https://docs.databento.com/knowledge-base/new-users/dbz-format?historical=python&live=python).
18
18
- Event-driven [market replay](https://docs.databento.com/reference-historical/helpers/bento-replay?historical=python&live=python), including at high-frequency order book granularity.
19
-
- Support for [batch download](https://docs.databento.com/knowledge-base/new-users/historical-data-streaming-vs-batch-download?historical=python&live=python) of flat files.
19
+
- Support for [batch download](https://docs.databento.com/knowledge-base/new-users/stream-vs-batch?historical=python&live=python) of flat files.
20
20
- Support for [pandas](https://pandas.pydata.org/docs/), CSV, and JSON.
21
21
22
22
## Documentation
@@ -31,11 +31,11 @@ The library is fully compatible with the latest distribution of Anaconda 3.7 and
31
31
The minimum dependencies as found in the `requirements.txt` are also listed below:
32
32
- Python (>=3.7)
33
33
- aiohttp (>=3.7.2)
34
-
- dbz-python (>=0.2.0)
34
+
- dbz-python (>=0.2.1)
35
35
- numpy (>=1.17.0)
36
36
- pandas (>=1.1.3)
37
37
- requests (>=2.24.0)
38
-
- zstandard (>=0.18.0)
38
+
- zstandard (>=0.19.0)
39
39
40
40
## Installation
41
41
To install the latest stable version of the package from PyPI:
@@ -56,6 +56,8 @@ import databento as db
56
56
client = db.Historical('YOUR_API_KEY')
57
57
data = client.timeseries.stream(
58
58
dataset='GLBX.MDP3',
59
+
symbols='ES.FUT',
60
+
stype_in='smart',
59
61
start='2022-06-10T14:30',
60
62
end='2022-06-10T14:40',
61
63
)
@@ -75,14 +77,17 @@ array = data.to_ndarray() # to ndarray
75
77
```
76
78
77
79
Note that the API key was also passed as a parameter, which is
78
-
[not recommended for production applications](https://docs.databento.com/knowledge-base/kb-new-users/kb-new-security-managing-api-keys?historical=python&live=python).
80
+
[not recommended for production applications](https://docs.databento.com/knowledge-base/new-users/security-managing-api-keys?historical=python&live=python).
79
81
Instead, you can leave out this parameter to pass your API key via the `DATABENTO_API_KEY` environment variable:
80
82
81
83
```python
82
84
import databento as db
83
85
84
-
client = db.Historical('YOUR_API_KEY') # pass as parameter
85
-
client = db.Historical() # pass as `DATABENTO_API_KEY` environment variable
86
+
# Pass as parameter
87
+
client = db.Historical('YOUR_API_KEY')
88
+
89
+
# Or, pass as `DATABENTO_API_KEY` environment variable
0 commit comments