1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # Lighter Rust SDK
//!
//! A Rust SDK for the Lighter trading platform, providing async API access to trading operations,
//! account management, and real-time market data.
//!
//! ## Features
//!
//! - **Async/await support** - Built with Tokio for high-performance async operations
//! - **Type-safe API** - Comprehensive Rust types for all API responses
//! - **Pluggable APIs** - Support for REST APIs exposed by the Lighter platform, which can be enabled all or only a specific subset of them.
//! - **Ethereum signing** - Built-in support for Ethereum-compatible wallet signing
//!
//! ## Quick Start
//!
//! ```ignore
//! use lighter_rust::{LighterClient, Config, api::account::AccountBy};
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! let config = LighterConfig::new()
//! .with_api_key_private(YOUR_API_KEY_PRIVATE)
//! .with_account_index(YOUR_ACCOUNT_INDEX)
//! .with_api_key_index(YOUR_API_KEY_INDEX);
//!
//! let client = HttpClient::builder()
//! .with_config(config)
//! .with_account()
//! .build()?;
//!
//! let account = client
//! .api()
//! .account()?
//! .account(AccountBy::L1Address, YOUR_ACCOUNT_ADDRESS)
//! .await?;
//! println!("Account: {:?}", account);
//!
//! Ok(())
//! }
//! ```
//!
// implementation of the APIs interfaces
// openapi generated
// module containing http/ws clients
// openapi generated, needed for requests/responses
// module containing the interface to the `lighter-go` lib, used for signing
pub use LighterConfig;
pub use ;
pub use crate::;