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 orderbook::OrderbookEngine;pub use orderbook::EngineOptions;pub use orderbook::EngineView;pub use short_form::ShortFormInterval;pub use short_form::Coin;pub use short_form::ShortFormStream;pub use short_form::ShortFormMessage;pub use short_form::RotationInfo;pub use short_form::ShortFormMarket;pub use short_form::ShortFormBuilder;pub use types::*;