polynode 0.12.0

Rust SDK for the PolyNode API — real-time Polymarket data
Documentation
//! PolyNode SDK — Rust client for the PolyNode real-time Polymarket API.
//!
//! # Quick Start
//!
//! ```rust,no_run
//! use polynode::PolyNodeClient;
//!
//! #[tokio::main]
//! async fn main() -> polynode::Result<()> {
//!     let client = PolyNodeClient::new("pn_live_...")?;
//!     let markets = client.markets(Some(5)).await?;
//!     println!("{} markets", markets.count);
//!     Ok(())
//! }
//! ```

pub mod error;
pub mod types;
pub mod client;
pub mod ws;
pub mod orderbook;
pub mod short_form;

#[cfg(feature = "cache")]
pub mod cache;

#[cfg(feature = "trading")]
pub mod trading;

pub mod redemption;
pub mod testing;

pub use error::{Error, Result};
pub use redemption::{RedemptionWatcher, RedemptionWatcherConfig, RedeemableAlert};
pub use client::PolyNodeClient;
pub use orderbook::{ObStream, ObStreamOptions, LocalOrderbook, OrderbookEngine, EngineOptions, EngineView};
pub use short_form::{ShortFormInterval, Coin, ShortFormStream, ShortFormMessage, RotationInfo, ShortFormMarket, ShortFormBuilder};
pub use types::*;

/// Re-export `serde_json` for use with `rpc_call` and untyped response access.
pub use serde_json;