Polymarket_common.ConstantsSourceShared constants for Polymarket API clients.
This module centralizes magic numbers and configuration values used across the codebase, providing documentation and a single source of truth.
Polygon (formerly Matic) mainnet chain ID (137).
USDC and CTF tokens use 6 decimal places on Polygon. This scale factor (1_000_000.0) converts between human-readable amounts and on-chain representation.
Number of decimal places for USDC/CTF tokens (6).
Zero address used for open orders (no specific taker).
CTF Exchange contract address on Polygon mainnet.
One year in seconds (31_536_000.0). Used as default order expiration.
RTDS (Real-Time Data Socket) recommended ping interval (5.0 seconds).
Default buffer size for WebSocket message streams (1000).
CLOB authentication domain name for EIP-712 signing ("ClobAuthDomain").
CLOB authentication domain version ("1").
The attestation message signed for CLOB authentication.
CTF Exchange domain name for order signing ("Polymarket CTF Exchange").
CTF Exchange domain version ("1").