databento
Official Python client library for Databento
What it is and what it does
Databento is the official Python client for the Databento market data platform, providing unified access to both live and historical financial data across multiple asset classes and venues. It abstracts away the complexity of different data formats and symbology systems by offering fully normalized schemas—the same message structure works for both live and historical data, whether you're working with market-by-order, market-by-price, top-of-book, OHLCV, or last-sale events. The library efficiently stores and reads data in Databento Binary Encoding format and supports event-driven market replay at any granularity, from daily bars to high-frequency order book snapshots.
The package is built on a foundation of mature dependencies: aiohttp and requests for HTTP communication, pandas and numpy for data manipulation, pyarrow for columnar storage, and zstandard for compression. It requires Python 3.10 or later and is actively maintained. You interact with it by instantiating a Historical or Live client with an API key, then calling methods like timeseries.get_range() to fetch data, which you can then replay event-by-event, convert to a pandas DataFrame, or export to CSV or JSON. The library handles API authentication, data normalization, and symbology mapping transparently.
Use it for:
- Backtest trading strategies using normalized historical order book or OHLCV data with event-driven replay.
- Fetch and analyze multi-asset time series (equities, futures, options) with point-in-time instrument definitions.
- Build real-time market monitoring dashboards by consuming live feeds and converting to pandas DataFrames.
- Perform high-frequency research on order book dynamics using market-by-order schemas across multiple venues.
- Batch download and store market data in efficient binary format for offline analysis or archival.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Official Python client for accessing live and historical market data from Databento, supporting multiple asset classes, schemas, and data formats with normalized message structures.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively. It is the official client for a specialized but well-established market data service. Install it if you need programmatic access to Databento's historical or live market data; skip it if you don't have a Databento account or need data from a different provider.
Install
databento on PyPI
pip
pip install databentouv
uv add databentopoetry
poetry add databentoInstalling databento
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with a release 9 days old and a recent commit history. Eight runtime dependencies are all widely-used libraries (aiohttp, pandas, numpy, pyarrow, requests, zstandard, databento-dbn, pip-system-certs).
License in practice
Apache-2.0 permissive license allows commercial and private use without restriction, with minimal attribution requirements.
Quickstart
pip install -U databento
import databento as db
client = db.Historical('YOUR_API_KEY')
data = client.timeseries.get_range(
dataset='GLBX.MDP3',
symbols='ES.FUT',
stype_in='parent',
start='2022-06-10T14:30',
end='2022-06-10T14:40',
)
df = data.to_df()
Requires Python >=3.10 and a valid Databento API key (free signup available); Windows users need pip-system-certs.
Verify before relying
- Whether the library supports real-time streaming in addition to historical batch retrieval.
- Performance characteristics and throughput limits for large datasets or high-frequency replay.
- Whether smart symbology and point-in-time instrument definitions are available in the free tier.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — aiohttp, databento-dbn, numpy, pandas, pip-system-certs, pyarrow, requests, zstandard |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,745,295/month — #3,597 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: databento-0.83.0-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
databento-dbndatabento-dbn provides Python bindings for…
permissive · top 5,000 on PyPI
lseg-dataClient library for accessing LSEG Data Platform…
permissive · top 15,000 on PyPI
tardis-devProvides async access to tick-level historical…
copyleft · top 15,000 on PyPI
tardis-clienttardis-client is a deprecated Python client for…
copyleft · top 15,000 on PyPI
yahooqueryRetrieves financial data from Yahoo Finance…
permissive · top 15,000 on PyPI
dhanhqPython client library for the Dhan trading API,…
permissive · top 15,000 on PyPI
alpaca-trade-apiPython client library for the Alpaca Commission…
unclear · top 15,000 on PyPI
growwapiSDK for connecting to Groww's trading platform…
permissive · top 15,000 on PyPI
yfinanceFetches financial and market data from Yahoo…
permissive · top 1,000 on PyPI
energyquantifiedA Python client library for querying Energy…
permissive · top 15,000 on PyPI