Skip to main content

df_hyperliquid_core/live/
mod.rs

1//! The websocket without the socket: subscriptions, the frames sent and received, the
2//! connection's state, what a feed hands back, and a store that keeps live state for an app.
3//! Rows the socket sends in the shapes `/info` answers are the [`crate::account`] and
4//! [`crate::markets`] types; only the socket's own frames are defined here.
5
6pub mod account;
7pub mod feed;
8pub mod frame;
9pub mod market;
10pub mod request;
11pub mod session;
12pub mod store;
13pub mod subscription;
14
15pub use account::{
16    AllDexsState, Cancel, DexState, Funding, HistoricalOrders, LeadingVault, Ledger, Liquidation, OpenOrders,
17    OrderUpdate, PerpDexState, SpotState, TwapEvent, TwapHistory, TwapSliceFills, TwapState, TwapStates, TwapStatus,
18    UserEvent, UserFills, UserFundings, UserState, WebData3,
19};
20pub use feed::{Event, FeedError};
21#[cfg(feature = "__test-internals")]
22#[doc(hidden)]
23pub use frame::reads_directly;
24pub use frame::{Ack, Answer, BadFrame, Frame, Method, Refusal, Reply, decode};
25pub use market::{BadDiff, Bbo, L2, L2Diff, L2Level, Mids};
26pub use request::{PING, Post, post, subscribe, unsubscribe};
27pub use session::{
28    Limits, MAX_CONNECTIONS, MAX_INFLIGHT_POSTS, MAX_MESSAGES_PER_MINUTE, MAX_NEW_CONNECTIONS_PER_MINUTE,
29    MAX_SUBSCRIPTIONS, MAX_USERS, Refused, Retry, Session, Tick, Timing,
30};
31pub use subscription::{BadSubscription, Subscription};
32
33#[cfg(test)]
34#[path = "tests/fixtures.rs"]
35mod fixtures;