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 redemption::RedemptionWatcher;pub use redemption::RedemptionWatcherConfig;pub use redemption::RedeemableAlert;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 serde_json;pub use types::*;
Modules§
- client
- PolyNode client with REST methods and WebSocket stream creation.
- error
- Error types for the PolyNode SDK.
- orderbook
- redemption
- Redemption watcher — monitors wallets for redeemable positions after oracle resolution.
- short_
form - Auto-rotating streams for Polymarket short-form crypto markets (5m, 15m, 1h).
- testing
- Testing utilities — find active wallets for integration testing.
- types
- ws