polynode 0.13.9

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 client;
pub mod error;
pub mod orderbook;
pub mod short_form;
pub mod types;
pub mod ws;

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

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

pub mod redemption;
pub mod testing;

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

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