polymarket 0.1.0

Rust SDK for Polymarket prediction market - CLOB trading, on-chain operations, and WebSocket streaming
Documentation
/// Authentication access levels
pub const L0: u8 = 0; // Public endpoints (no auth)
pub const L1: u8 = 1; // Wallet signature required
pub const L2: u8 = 2; // API key required

/// Error messages
pub const L1_AUTH_UNAVAILABLE: &str = "A private key is needed to interact with this endpoint!";
pub const L2_AUTH_UNAVAILABLE: &str = "API Credentials are needed to interact with this endpoint!";

/// Zero address constant
pub const ZERO_ADDRESS: &str = "0x0000000000000000000000000000000000000000";

/// Chain IDs
pub const AMOY: u64 = 80002;  // Testnet
pub const POLYGON: u64 = 137; // Mainnet

/// Pagination
pub const END_CURSOR: &str = "LTE=";

/// Credential creation warning
pub const CREDENTIAL_CREATION_WARNING: &str = r#"🚨🚨🚨
Your credentials CANNOT be recovered after they've been created.
Be sure to store them safely!
🚨🚨🚨"#;