Expand description
PolyNode SDK — Rust client for the PolyNode real-time Polymarket API.
§Quick Start
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(())
}Re-exports§
pub use error::Error;pub use error::Result;pub use client::PolyNodeClient;pub use orderbook::ObStream;pub use orderbook::ObStreamOptions;pub use orderbook::LocalOrderbook;pub use types::*;