Skip to main content

df_lighter_core/
lib.rs

1//! Lighter SDK for Rust, on Lighter and on Lighter on Robinhood Chain.
2//!
3//! - [`client`]: the [`Client`], the REST API over HTTP, rate limits, the two networks, and the
4//!   native and browser wires.
5//! - [`markets`]: what is listed and what it trades at.
6//! - [`account`]: what an account holds and who may sign for it.
7//! - [`trade`]: orders on every market.
8//! - [`transfer`]: moving money.
9//! - [`earn`]: public pools, LIT staking and LIT fee credits.
10//! - [`deploy`]: binary options markets.
11//! - [`live`]: websocket subscriptions and kept live state.
12//! - [`utils`]: decimals, a market's grid, ids, units and the signing primitives.
13//!
14//! Money is exact decimals, never floats. Features: `sign` and `native` (default), `web`.
15
16pub mod account;
17pub mod client;
18pub mod deploy;
19pub mod earn;
20pub mod live;
21pub mod markets;
22pub mod trade;
23pub mod transfer;
24pub mod utils;
25
26#[cfg(test)]
27pub(crate) mod test_support;
28
29pub use client::{Client, Network, SendError};
30pub use utils::{Address, Dec};