PolymarketClob.Config (PolymarketClob v0.2.0)

Copy Markdown View Source

Polymarket CLOB contract addresses and protocol constants.

Summary

Functions

Zero bytes32 value used by the official clients for empty metadata/builder.

Current production CLOB host.

Returns the current contract configuration for a supported chain.

Current production Data API host.

Returns the standard or negative-risk exchange address for EIP-712 order signing.

Gamma API host — the markets/events catalog. This is where market discovery lives (active markets, recurring series like the 5-minute BTC Up/Down markets); the CLOB host only serves order books, prices, and the reward-bearing sampling-markets subset.

Temporary pre-cutover CLOB host retained for fixture/debug workflows.

Buy side constant.

Sell side constant.

EOA signature type.

EIP-1271 smart contract wallet signature type.

Polymarket Gnosis Safe signature type.

Polymarket proxy signature type.

Types

chain_id()

@type chain_id() :: 137 | 80002

Functions

bytes32_zero()

@spec bytes32_zero() :: String.t()

Zero bytes32 value used by the official clients for empty metadata/builder.

clob_host()

@spec clob_host() :: String.t()

Current production CLOB host.

contract_config(chain_id)

@spec contract_config(chain_id()) :: map()

Returns the current contract configuration for a supported chain.

data_api_host()

@spec data_api_host() :: String.t()

Current production Data API host.

exchange_address(chain_id, opts \\ [])

@spec exchange_address(
  chain_id(),
  keyword()
) :: String.t()

Returns the standard or negative-risk exchange address for EIP-712 order signing.

gamma_host()

@spec gamma_host() :: String.t()

Gamma API host — the markets/events catalog. This is where market discovery lives (active markets, recurring series like the 5-minute BTC Up/Down markets); the CLOB host only serves order books, prices, and the reward-bearing sampling-markets subset.

pre_cutover_clob_host()

@spec pre_cutover_clob_host() :: String.t()

Temporary pre-cutover CLOB host retained for fixture/debug workflows.

side_buy()

@spec side_buy() :: 0

Buy side constant.

side_sell()

@spec side_sell() :: 1

Sell side constant.

sig_type_eoa()

@spec sig_type_eoa() :: 0

EOA signature type.

sig_type_poly_1271()

@spec sig_type_poly_1271() :: 3

EIP-1271 smart contract wallet signature type.

sig_type_poly_gnosis_safe()

@spec sig_type_poly_gnosis_safe() :: 2

Polymarket Gnosis Safe signature type.

sig_type_poly_proxy()

@spec sig_type_poly_proxy() :: 1

Polymarket proxy signature type.