1pub mod entries;
5
6pub mod web3;
8
9#[cfg(feature = "telemetry")]
11pub mod telemetry;
12
13pub mod pair;
15pub use pair::Pair;
16
17pub mod orderbook;
19pub use orderbook::{Orderbook, OrderbookError};
20
21pub mod instrument_type;
23pub use instrument_type::{InstrumentType, InstrumentTypeError};
24
25pub mod aggregation;
27pub use aggregation::AggregationMode;
28
29pub mod interval;
31pub use interval::Interval;
32
33#[cfg(feature = "capnp")]
35mod schema_capnp {
36 include!(concat!(env!("OUT_DIR"), "/schema_capnp.rs"));
37}
38
39#[cfg(feature = "capnp")]
40pub trait CapnpSerialize {
41 fn to_capnp(&self) -> Vec<u8>;
42}
43
44#[cfg(feature = "capnp")]
45pub trait CapnpDeserialize {
46 fn from_capnp(bytes: &[u8]) -> Result<Self, capnp::Error>
47 where
48 Self: Sized;
49}