Thin Req wrapper for Polymarket CLOB HTTP calls.
Endpoint modules should build on this layer. It owns JSON byte encoding, timeout/retry defaults, L2 auth header injection for private requests, and normalized error returns.
Summary
Functions
Encodes request bodies into the exact JSON bytes used for HMAC signing.
Performs a private authenticated request using L2 CLOB credentials.
Performs a public unauthenticated request.
Types
@type result() :: {:ok, term()} | {:error, PolymarketClob.Error.t()}
Functions
Encodes request bodies into the exact JSON bytes used for HMAC signing.
@spec private_request(PolymarketClob.Client.t(), atom(), String.t(), keyword()) :: result()
Performs a private authenticated request using L2 CLOB credentials.
Performs a public unauthenticated request.