Skip to main content

Crate px_core

Crate px_core 

Source

Re-exports§

pub use buffer_pool::BufferPool;
pub use hash::FastHashMap;
pub use hash::FastHashSet;
pub use price_fixed::parse_level;
pub use price_fixed::parse_price_str;
pub use price_fixed::parse_qty_str;
pub use price_fixed::Price;
pub use price_fixed::Qty;
pub use price_fixed::SCALE_FACTOR;
pub use ws_decoder::decode_frame;
pub use ws_decoder::decode_value;
pub use ws_decoder::WsFrame;
pub use error::*;
pub use events::*;
pub use exchange::*;
pub use models::*;
pub use timing::*;
pub use utils::*;
pub use websocket::*;

Modules§

buffer_pool
Reusable byte-buffer pool.
error
events
exchange
hash
Fast hash-map aliases for hot-path collections.
http
Shared HTTP client tunings.
models
price_fixed
Integer-only string → fixed-point price/qty parsing.
timing
Comprehensive timing instrumentation for HFT-level latency tracking.
utils
websocket
ws_decoder
Shared WebSocket frame decoding helpers.

Macros§

define_exchange_error
Generates a per-exchange error enum with the five variants every exchange shares (Http, Api, RateLimited, AuthRequired, MarketNotFound), plus any exchange-specific variants passed in the body.
timed
Zero-cost timing macro. Expands inline at compile time.