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
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,29 +9,29 @@
9
9
The official Python client library for [Databento](https://databento.com).
10
10
11
11
Key features include:
12
-
- Fast, lightweight access to both live and historical data from [multiple markets]().
13
-
-[Multiple schemas]() such as MBO, MBP, top of book, OHLCV, last sale, and more.
14
-
-[Fully normalized](), i.e. identical message schemas for both live and historical data, across multiple asset classes.
15
-
- Provides mappings between different symbology systems, including [smart symbology]() for futures rollovers.
12
+
- Fast, lightweight access to both live and historical data from [multiple markets](https://docs0.databento.com/knowledge-base/new-users/venues-and-publishers?historical=python&live=python).
13
+
-[Multiple schemas](https://docs0.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.
14
+
-[Fully normalized](https://docs0.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
+
- Provides mappings between different symbology systems, including [smart symbology](https://docs0.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
-
- Reads and stores market data in an extremely efficient file format using [Databento Binary Encoding]().
18
-
- Event-driven [market replay](), including at high-frequency order book granularity.
19
-
- Support for [batch download]() of flat files.
20
-
- Support for [pandas](), CSV, and JSON.
17
+
- Reads and stores market data in an extremely efficient file format using [Databento Binary Encoding](https://docs0.databento.com/knowledge-base/new-users/dbz-format?historical=python&live=python).
18
+
- Event-driven [market replay](https://docs0.databento.com/reference-historical/helpers/bento-replay?historical=python&live=python), including at high-frequency order book granularity.
19
+
- Support for [batch download](https://docs0.databento.com/knowledge-base/new-users/historical-data-streaming-vs-batch-download?historical=python&live=python) of flat files.
20
+
- Support for [pandas](https://pandas.pydata.org/docs/), CSV, and JSON.
21
21
22
22
## Documentation
23
23
The best place to begin is with our [Getting started](https://docs.databento.com/getting-started?historical=python&live=python) guide.
24
24
25
25
You can find our full client API reference on the [Historical Reference](https://docs.databento.com/reference-historical?historical=python&live=python) and
26
26
[Live Reference](https://docs.databento.com/reference-live?historical=python&live=python) sections of our documentation. See also the
27
-
[Examples]() section for various tutorials and code samples.
27
+
[Examples](https://docs0.databento.com/examples?historical=python&live=python) section for various tutorials and code samples.
28
28
29
29
## Requirements
30
30
The library is fully compatible with the latest distribution of Anaconda 3.7 and above.
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-lib (>=0.1.1)
34
+
- dbz-python (>=0.1.5)
35
35
- numpy (>=1.17.0)
36
36
- pandas (>=1.1.3)
37
37
- requests (>=2.24.0)
@@ -56,10 +56,11 @@ import databento as db
56
56
client = db.Historical('YOUR_API_KEY')
57
57
data = client.timeseries.stream(
58
58
dataset='GLBX.MDP3',
59
-
start='2020-11-02T14:30',
60
-
end='2020-11-02T14:40')
59
+
start='2022-06-10T14:30',
60
+
end='2022-06-10T14:40',
61
+
)
61
62
62
-
data.replay(callback=print) # market replay, with `print` as event handler
63
+
data.replay(callback=print) # market replay, with `print` as event handler
63
64
```
64
65
65
66
Replace `YOUR_API_KEY` with an actual API key, then run this program.
@@ -70,7 +71,7 @@ and dispatch each data event to an event handler. You can also use
70
71
71
72
```python
72
73
df = data.to_df(pretty_ts=True, pretty_px=True) # to DataFrame, with pretty formatting
73
-
array = data.to_ndarray() # to ndarray
74
+
array = data.to_ndarray() # to ndarray
74
75
```
75
76
76
77
Note that the API key was also passed as a parameter, which is
@@ -81,7 +82,7 @@ Instead, you can leave out this parameter to pass your API key via the `DATABENT
81
82
import databento as db
82
83
83
84
client = db.Historical('YOUR_API_KEY') # pass as parameter
84
-
client = db.Historical() # pass as `DATABENTO_API_KEY` environment variable
85
+
client = db.Historical() # pass as `DATABENTO_API_KEY` environment variable
0 commit comments