Skip to main content

df_papertrade_core/
lib.rs

1//! Papertrade SDK for Rust: perps on HyperEVM at Hyperliquid's BBO mid, gasless through a relayer.
2//!
3//! - [`client`]: the [`Client`], its config and reads, the relayer, the deployment and HyperEVM
4//!   reads.
5//! - [`markets`]: the trading state and the relayer's protocol figures.
6//! - [`account`]: the live account, the session key, storage and the wallet.
7//! - [`trade`]: intents, signatures, the venue's integer math and the writes.
8//! - [`transfer`]: deposits from Hyperliquid.
9//! - [`live`]: the account stream's event parser.
10//! - [`utils`]: units, nonces and JSON readers.
11//!
12//! Mainnet only. Money is integers and exact decimals, never floats.
13#![deny(clippy::float_arithmetic)]
14
15pub mod account;
16pub mod client;
17pub mod live;
18pub mod markets;
19pub mod trade;
20pub mod transfer;
21pub mod utils;
22
23#[cfg(test)]
24pub(crate) mod test_support;
25
26pub use client::{Client, Config, Error};