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};
21pub use frame::{Ack, Answer, BadFrame, Frame, Method, Refusal, Reply, decode};
22pub use market::{Bbo, Mids};
23pub use request::{PING, Post, post, subscribe, unsubscribe};
24pub use session::{
25    Limits, MAX_CONNECTIONS, MAX_INFLIGHT_POSTS, MAX_MESSAGES_PER_MINUTE, MAX_NEW_CONNECTIONS_PER_MINUTE,
26    MAX_SUBSCRIPTIONS, MAX_USERS, Refused, Retry, Session, Tick, Timing,
27};
28pub use subscription::{BadSubscription, Subscription};
29
30#[cfg(test)]
31#[path = "tests/fixtures.rs"]
32mod fixtures;