polyte-gamma
Rust client library for Polymarket Gamma (market data) API.
The Gamma API provides read-only access to Polymarket's market data, including markets, events, series, tags, and sports metadata.
More information about this crate can be found in the crate documentation.
Features
- Type-Safe API: Strongly-typed responses with serde deserialization
- Fluent Builder Pattern: Chainable methods for constructing queries
- Comprehensive Coverage: Support for markets, events, series, tags, sports, and comments
Installation
[]
= "0.1.0"
Or use the unified client:
[]
= "0.1.0"
Usage
Basic Example
use Gamma;
async
Get Market by ID
let market = gamma.markets
.get
.send
.await?;
println!;
println!;
println!;
List Series
let series = gamma.series
.list
.active
.send
.await?;
for s in series
Get Tags
let tags = gamma.tags.list.send.await?;
for tag in tags
Configuration
let gamma = builder
.base_url
.timeout_ms
.pool_size
.build?;
API Coverage
- Markets: List, get by ID, with filtering (active, closed, archived)
- Events: List and get event data with nested markets
- Series: Tournament/season data with events
- Tags: Market categorization and related tags
- Sports: Sports metadata and information
- Comments: Market comments and discussions
Examples
The crate includes several examples:
# List markets
# Get sports data
# Browse tags
# Explore series
License
This project is licensed under the MIT License.