package polymarket
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=4eb4c5d2f63ff081c9713d90be5a51b2
sha512=0e3de0c9b40683e09ab8f9f966a44784ef1b9b482c3eefef84104a7e8042c92f1d79893ee9588b24fa3d0decaed7f365509f4d1c23c66ce8328efb64e721f276
doc/polymarket.common/Polymarket_common/Constants/index.html
Module Polymarket_common.ConstantsSource
Shared 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 Network
Polygon (formerly Matic) mainnet chain ID (137).
Token Decimals
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).
Contract Addresses
Zero address used for open orders (no specific taker).
CTF Exchange contract address on Polygon mainnet.
Time Durations
One year in seconds (31_536_000.0). Used as default order expiration.
WebSocket Configuration
RTDS (Real-Time Data Socket) recommended ping interval (5.0 seconds).
Default buffer size for WebSocket message streams (1000).
EIP-712 Domain Constants
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").