dbn

Crates.iodbn
lib.rsdbn
version0.23.0
sourcesrc
created_at2023-02-23 00:00:37.829448
updated_at2024-10-22 20:45:48.913135
descriptionLibrary for working with Databento Binary Encoding (DBN)
homepage
repositoryhttps://github.com/databento/dbn
max_upload_size
id792207
size781,267
databento-bot (databento-bot)

documentation

README

dbn

build Documentation license Current Crates.io Version

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.

Commit count: 547

cargo fmt