77 releases (43 breaking)
| 0.46.0 | Jan 6, 2026 |
|---|---|
| 0.45.0 | Dec 9, 2025 |
| 0.44.0 | Nov 18, 2025 |
| 0.39.0 | Jul 29, 2025 |
| 0.4.0 | Mar 29, 2023 |
#27 in Finance
18,209 downloads per month
Used in 6 crates
(5 directly)
1MB
24K
SLoC
dbn
The official crate for working with Databento Binary Encoding (DBN). For more information about DBN, read our introduction to DBN.
Check out the databento crate for the official Databento Rust client.
Installation
To add the crate to an existing project, run the following command:
cargo add dbn
Usage
To read a DBN file with MBO data and print each row:
use dbn::{
decode::dbn::Decoder,
record::MboMsg,
};
use streaming_iterator::StreamingIterator;
let mut dbn_stream = Decoder::from_zstd_file("20201228.dbn.zst")?.decode_stream::<MboMsg>()?;
while let Some(mbo_msg) = dbn_stream.next() {
println!("{mbo_msg:?}");
}
Documentation
See the docs for more detailed usage.
License
Distributed under the Apache 2.0 License.
Dependencies
~7–10MB
~185K SLoC