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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! # polyte-clob
//!
//! Rust client library for Polymarket CLOB (Centralized Limit Order Book) API.
//!
//! ## Features
//!
//! - Order creation, signing, and posting with EIP-712
//! - Market data and order book retrieval
//! - Account balance and trade history
//! - HMAC-based L2 authentication
//! - Type-safe API with idiomatic Rust patterns
//!
//! ## Example
//!
//! ```no_run
//! use polyte_clob::{Account, Chain, ClobBuilder, CreateOrderParams, OrderSide};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Load account from environment variables
//! let account = Account::from_env()?;
//!
//! // Create CLOB client
//! let clob = ClobBuilder::new(account)
//! .chain(Chain::PolygonMainnet)
//! .build()?;
//!
//! // Place an order
//! let params = CreateOrderParams {
//! token_id: "token_id".to_string(),
//! price: 0.52,
//! size: 100.0,
//! side: OrderSide::Buy,
//! expiration: None,
//! };
//!
//! let response = clob.place_order(¶ms).await?;
//! println!("Order ID: {:?}", response.order_id);
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;