Repository navigation
Releases: pawsengineer/polymarket-rs
Release list
v0.2.0
Release Notes - v0.2.0
Change logs
- Implement Gamma API client with market data retrieval
- Add comprehensive type definitions for Gamma events and markets
- Add query parameters with pagination and sorting support
- Include example usage in
gamma_markets.rs
v0.1.6
Release Notes - v0.1.6
Change logs
- added
get_market_by_slugmethod to fetch markets by their slug identifier. - added Fill and Kill (FAK) order support for immediate execution orders.
- added methods to check if order book is empty and sort bids/asks.
- fixed rounding strategy for price calculations to use
ToZeroto prevent prices from rounding to 1.0, which is invalid for prediction markets on Polymarket.
v0.1.5
Release Notes - v0.1.5
Change logs
- added support for posting multiple orders in a single API call with the new
post_ordersmethod. - updated
examples/websocket_market.rsto demonstrate automatic reconnection handling. - consolidated duplicate
PriceLevelandOrderSummarytypes for better API consistency.- Unified into single
PriceLeveltype intypes::ordermodule - Used across both order book summaries and WebSocket events
- Breaking Change:
OrderSummaryrenamed toPriceLevel
- Unified into single
v0.1.4
Release Notes - v0.1.4
Change logs
- fix: missing
next_cursorparameter onget_markets
v0.1.2
Release Notes - v0.1.2
Improvements
- Prevent token amount overflow by using u64 instead of u32
- Fix market order amounts calculation
v0.1.1
Release Notes - v0.1.1
Improvements
- Market Price Calculation: Fixed
calculate_market_priceto return weighted average price across order book levels instead of just the tick price- Now correctly accumulates shares (not cost) when walking the order book
- Supports Side parameter for buy/sell order direction
- Buy orders walk asks (lowest → highest), sell orders walk bids (highest → lowest)
v0.1.0
Initial alpha release of polymarket-rs, a modern, type-safe Rust client library for the Polymarket CLOB and Data API.
Features
- Full Authentication Support - L1 (EIP-712) and L2 (HMAC) authentication for trading operations
- WebSocket Streaming - Real-time market data and user events with automatic reconnection
- Multiple Client Types - Modular clients for different operations:
- ClobClient - Public market data queries
- AuthenticatedClient - API key management and account operations
- TradingClient - Order creation, cancellation, and trade queries
- DataClient - Position and portfolio data
- Builder Pattern - Fluent APIs for configuration and order creation
- Async/Await - Built on tokio for high-performance operations
- Decimal Precision - Accurate financial calculations with rust_decimal
Installation
[dependencies]
polymarket-rs = { git = "https://github.com/pawsengineer/polymarket-rs.git" }