polyte_data/lib.rs
1//! # polyte-data
2//!
3//! Rust client library for Polymarket Data API.
4//!
5//! ## Features
6//!
7//! - User position data retrieval with filtering and pagination
8//! - Type-safe API with idiomatic Rust patterns
9//! - Request builder pattern for flexible, composable queries
10//!
11//! ## Example
12//!
13//! ```no_run
14//! use polyte_data::DataApi;
15//!
16//! #[tokio::main]
17//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
18//! // Create a new Data API client
19//! let data = DataApi::new()?;
20//!
21//! // Get positions for a user with fluent builder pattern
22//! let positions = data.user("0x1234567890123456789012345678901234567890")
23//! .list_positions()
24//! .limit(10)
25//! .send()
26//! .await?;
27//!
28//! for position in positions {
29//! println!("Position: {} - size: {}", position.title, position.size);
30//! }
31//!
32//! Ok(())
33//! }
34//! ```
35
36pub mod api;
37pub mod client;
38pub mod error;
39pub mod request;
40pub mod types;
41
42pub use client::{DataApi, DataApiBuilder};
43pub use error::{DataApiError, Result};