polyte_gamma/
lib.rs

1//! # polyte-gamma
2//!
3//! Rust client library for Polymarket Gamma (market data) API.
4//!
5//! ## Features
6//!
7//! - Market data retrieval with filtering and pagination
8//! - Event and series (tournament/season) information
9//! - Tags and sports metadata
10//! - Comments on markets, events, and series
11//! - Type-safe API with idiomatic Rust patterns
12//! - Request builder pattern for flexible, composable queries
13//!
14//! ## Example
15//!
16//! ```no_run
17//! use polyte_gamma::Gamma;
18//!
19//! #[tokio::main]
20//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
21//!     // Create a new Gamma client
22//!     let gamma = Gamma::new()?;
23//!
24//!     // List active markets with fluent builder pattern
25//!     let markets = gamma.markets()
26//!         .list()
27//!         .active(true)
28//!         .limit(10)
29//!         .send()
30//!         .await?;
31//!
32//!     for market in markets {
33//!         println!("Market: {}", market.question);
34//!     }
35//!
36//!     // Get a specific market
37//!     let market = gamma.markets()
38//!         .get("condition-id")
39//!         .send()
40//!         .await?;
41//!
42//!     Ok(())
43//! }
44//! ```
45
46pub mod api;
47pub mod client;
48pub mod error;
49pub mod request;
50pub mod types;
51
52pub use client::{Gamma, GammaBuilder};
53pub use error::{GammaError, Result};