[package]
name = "polynode"
version = "0.5.8"
edition = "2021"
description = "Rust SDK for the PolyNode API — real-time Polymarket data"
license = "MIT"
readme = "README.md"
keywords = ["polymarket", "polynode", "prediction-market", "websocket", "polygon"]
categories = ["api-bindings", "web-programming::websocket"]
repository = "https://github.com/joinQuantish/polynode-rs"
homepage = "https://polynode.dev"
documentation = "https://docs.polynode.dev/guides/sdk"
[features]
default = []
cache = ["dep:rusqlite", "dep:notify"]
trading = [
"dep:alloy-primitives",
"dep:alloy-signer",
"dep:alloy-signer-local",
"dep:rusqlite",
"dep:hmac",
"dep:sha2",
"dep:base64",
"dep:async-trait",
"dep:rand",
"dep:hex",
]
privy = ["trading"]
[dependencies]
tokio = { version = "1", features = ["rt", "macros", "time", "sync"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
tokio-tungstenite = { version = "0.26", features = ["rustls-tls-webpki-roots"] }
futures-util = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
flate2 = "1"
thiserror = "2"
tracing = "0.1"
url = "2"
rusqlite = { version = "0.32", features = ["bundled"], optional = true }
notify = { version = "7", optional = true }
alloy-primitives = { version = "1", optional = true }
alloy-signer = { version = "1", optional = true }
alloy-signer-local = { version = "1", optional = true }
hmac = { version = "0.12", optional = true }
sha2 = { version = "0.10", optional = true }
base64 = { version = "0.22", optional = true }
async-trait = { version = "0.1", optional = true }
rand = { version = "0.9", optional = true }
hex = { version = "0.4", optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }