Polymarket.Config (Polymarket v0.2.0)

Copy Markdown View Source

Shared host constants for the Polymarket SDK.

This module owns the Gamma host. The Data API host is intentionally re-exported from PolymarketClob.Config so the two packages cannot drift: if Polymarket ever moves the Data API to a new host, the change lands once in polymarket_clob and propagates to every SDK caller.

CLOB-related constants (the CLOB host, exchange addresses, signature-type values, side constants) live in PolymarketClob.Config and should be read from there directly.

Summary

Functions

Current production Data API host.

Current production Gamma API host.

Functions

data_api_host()

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

Current production Data API host.

Delegates to PolymarketClob.Config.data_api_host/0 so this package and polymarket_clob stay aligned automatically.

gamma_host()

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

Current production Gamma API host.

Used for market discovery, event metadata, and resolution lookups.