dbn

build license Current Crates.io Version

The official library for working with the Databento Binary Encoding (DBN, formerly DBZ).

Installation

To add the crate to an existing project, run the following command: sh cargo add dbn

Usage

To read a DBN file with MBO data and print each row: ```rust use dbn::{ decode::dbn::Decoder, record::MboMsg, }; use streaming_iterator::StreamingIterator;

let mut dbnstream = Decoder::fromzstdfile("20201228.dbn.zst")?.decodestream::()?; while let Some(mbomsg) = dbnstream.next() { println!("{mbo_msg:?}"); } ```

Documentation

See the docs for more detailed usage.

License

Distributed under the Apache 2.0 License.