Crates.io | itchy |
lib.rs | itchy |
version | 0.3.2 |
source | src |
created_at | 2017-08-24 17:10:30.903165 |
updated_at | 2024-10-31 16:46:12.492914 |
description | Nom-based parser library for NASDAQ ITCH protocol |
homepage | |
repository | https://github.com/adwhit/itchy-rust |
max_upload_size | |
id | 28860 |
size | 48,493 |
ITCH parser library for Rust. Implements the NASDAQ 5.0 spec which can be found here.
It is zero-allocation (thanks nom!) and pretty fast, parsing around 20M messages/second on my not-fast laptop.
Add this to your Cargo.toml
:
[dependencies]
itchy = "0.3"
Simple usage example:
let stream = itchy::MessageStream::from_file("/path/to/file.itch").unwrap();
for msg in stream {
println!("{:?}", msg.unwrap())
}
See the API docs for more information.