Skip to content

Commit a3e701f

Browse files
authored
VER: Release 0.8.0
See release notes.
2 parents f070167 + 369ae21 commit a3e701f

File tree

76 files changed

+3690
-2296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3690
-2296
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 0.8.0 - 2023-03-03
4+
- Integrate DBN encoding `0.3.2`
5+
- Renamed `timeseries.stream` to `timeseries.get_range`
6+
- Renamed `timeseries.stream_async` to `timeseries.get_range_async`
7+
- Deprecated `timeseries.stream(...)` method
8+
- Deprecated `timeseries.stream_async(...)` method
9+
- Added `batch.list_files(...)` method
10+
- Added `batch.download(...)` method
11+
- Added `batch.download_async(...)` method
12+
- Changed `.to_df(...)` `pretty_ts` default argument to `True`
13+
- Changed `.to_df(...)` `pretty_px` default argument to `True`
14+
- Changed `.to_df(...)` `map_symbols` default argument to `True`
15+
- Drop support for DBZ encoding
16+
317
## 0.7.0 - 2023-01-10
418
- Added support for `definition` schema
519
- Updated `Flags` enum

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[![test](https://github.com/databento/databento-python/actions/workflows/test.yml/badge.svg?branch=dev)](https://github.com/databento/databento-python/actions/workflows/test.yml)
44
![python](https://img.shields.io/badge/python-3.7+-blue.svg)
5-
![pypi-version](https://img.shields.io/pypi/v/databento)
6-
![license](https://img.shields.io/github/license/databento/databento-python?color=blue)
5+
[![pypi-version](https://img.shields.io/pypi/v/databento)](https://pypi.org/project/databento)
6+
[![license](https://img.shields.io/github/license/databento/databento-python?color=blue)](./LICENSE)
77
[![code-style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
88

99
The official Python client library for [Databento](https://databento.com).
@@ -12,17 +12,17 @@ Key features include:
1212
- 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).
1313
- [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.
1414
- [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-
- Provides mappings between different symbology systems, including [smart symbology](https://docs.databento.com/reference-historical/basics/symbology?historical=python&live=python) for futures rollovers.
15+
- Provides mappings between different symbology systems, including [smart symbology](https://docs.databento.com/api-reference-historical/basics/symbology?historical=python&live=python) for futures rollovers.
1616
- [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](https://docs.databento.com/knowledge-base/new-users/dbz-format?historical=python&live=python).
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.
17+
- Reads and stores market data in an extremely efficient file format using [Databento Binary Encoding](https://docs.databento.com/knowledge-base/new-users/dbn-encoding?historical=python&live=python).
18+
- Event-driven [market replay](https://docs.databento.com/api-reference-historical/helpers/bento-replay?historical=python&live=python), including at high-frequency order book granularity.
1919
- Support for [batch download](https://docs.databento.com/knowledge-base/new-users/stream-vs-batch?historical=python&live=python) of flat files.
2020
- Support for [pandas](https://pandas.pydata.org/docs/), CSV, and JSON.
2121

2222
## Documentation
2323
The best place to begin is with our [Getting started](https://docs.databento.com/getting-started?historical=python&live=python) guide.
2424

25-
You can find our full client API reference on the [Historical Reference](https://docs.databento.com/reference-historical?historical=python&live=python) and
25+
You can find our full client API reference on the [Historical Reference](https://docs.databento.com/api-reference-historical?historical=python&live=python) and
2626
[Live Reference](https://docs.databento.com/reference-live?historical=python&live=python) sections of our documentation. See also the
2727
[Examples](https://docs.databento.com/examples?historical=python&live=python) section for various tutorials and code samples.
2828

@@ -31,7 +31,7 @@ The library is fully compatible with the latest distribution of Anaconda 3.7 and
3131
The minimum dependencies as found in the `requirements.txt` are also listed below:
3232
- Python (>=3.7)
3333
- aiohttp (>=3.7.2)
34-
- dbz-python (>=0.2.1)
34+
- databento-dbn (>=0.3.2)
3535
- numpy (>=1.17.0)
3636
- pandas (>=1.1.3)
3737
- requests (>=2.24.0)
@@ -54,7 +54,7 @@ A simple Databento application looks like this:
5454
import databento as db
5555

5656
client = db.Historical('YOUR_API_KEY')
57-
data = client.timeseries.stream(
57+
data = client.timeseries.get_range(
5858
dataset='GLBX.MDP3',
5959
symbols='ES.FUT',
6060
stype_in='smart',

databento/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from typing import Optional
22

3-
from databento.common.bento import Bento, FileBento, MemoryBento
3+
from databento.common.bento import Bento
44
from databento.common.enums import (
55
Compression,
66
Dataset,
77
Delivery,
88
Encoding,
99
FeedMode,
10-
Flags,
1110
HistoricalGateway,
1211
LiveGateway,
1312
Packaging,
13+
RecordFlags,
1414
RollRule,
1515
Schema,
1616
SplitDuration,
@@ -40,12 +40,10 @@
4040
"Delivery",
4141
"Encoding",
4242
"FeedMode",
43-
"FileBento",
44-
"Flags",
43+
"RecordFlags",
4544
"Historical",
4645
"HistoricalGateway",
4746
"LiveGateway",
48-
"MemoryBento",
4947
"Packaging",
5048
"RollRule",
5149
"Schema",

0 commit comments

Comments
 (0)