pragma_common/
lib.rs

1//! Main types used through our rust projects at Pragma.
2
3// Entries, i.e Spot/Perp/Future
4pub mod entries;
5pub mod instrument_type;
6pub use instrument_type::InstrumentType;
7
8// Web3 types
9pub mod web3;
10
11// Orderbooks, i.e complete orderbooks or snapshot & updates.
12pub mod orderbook;
13
14// Telemetry init through OTEL
15#[cfg(feature = "telemetry")]
16pub mod telemetry;
17
18// Pair
19pub mod pair;
20pub use pair::Pair;
21
22// Pragma Aggregations
23pub mod aggregation;
24pub use aggregation::AggregationMode;
25
26// Pragma Time Intervals
27pub mod interval;
28pub use interval::Interval;
29
30// Capnp generated schema
31#[cfg(feature = "capnp")]
32pub mod schema_capnp {
33    include!(concat!(env!("OUT_DIR"), "/schema_capnp.rs"));
34}