https://github.com/databento/dbn
Databento Binary Encoding (DBN) - Fast message encoding and storage format for market data
https://github.com/databento/dbn
binary-encoding databento encoding low-latency market-data rust serialization storage tick-data zero-copy zstd
Last synced: 7 days ago
JSON representation
Databento Binary Encoding (DBN) - Fast message encoding and storage format for market data
- Host: GitHub
- URL: https://github.com/databento/dbn
- Owner: databento
- License: apache-2.0
- Created: 2022-08-30T09:05:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-12T21:31:18.000Z (15 days ago)
- Last Synced: 2026-01-14T11:41:44.100Z (13 days ago)
- Topics: binary-encoding, databento, encoding, low-latency, market-data, rust, serialization, storage, tick-data, zero-copy, zstd
- Language: Rust
- Homepage: https://databento.com
- Size: 1.76 MB
- Stars: 145
- Watchers: 10
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# dbn
[](https://github.com/databento/dbn/actions/workflows/build.yaml)
[](https://docs.rs/dbn/latest/dbn/)
[](./LICENSE)
[](https://crates.io/crates/dbn)
[](https://pypi.org/project/databento-dbn)
[](https://to.dbn.to/slack)
**D**atabento **B**inary E**n**coding (DBN) is an extremely fast message encoding and storage format for normalized market data.
The DBN specification includes a simple, self-describing metadata header and a fixed set of struct definitions, which enforce a standardized way to normalize market data.
All official Databento client libraries use DBN under the hood, both as a data interchange format and for in-memory representation of data.
DBN is also the default encoding for all Databento APIs, including live data streaming, historical data streaming, and batch flat files.
This repository contains both libraries and a CLI tool for working with DBN files and streams.
Python bindings for `dbn` are provided in the `databento_dbn` package.
For more details, read our [introduction to DBN](https://databento.com/docs/standards-and-conventions/databento-binary-encoding).
## Features
- Performant binary encoding and decoding
- Highly compressible with Zstandard
- Extendable fixed-width schemas
## Usage
See the respective READMEs for usage details:
- [`dbn`](rust/dbn/README.md): Rust library crate
- [`dbn-cli`](rust/dbn-cli/README.md): CLI crate providing a `dbn` binary
- [`databento-dbn`](python/README.md): Python package
## License
Distributed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.html).