The geoblock status for the caller, as returned by GET /api/geoblock on the
Polymarket site (https://polymarket.com).
Reports whether the request is blocked, along with the detected ip,
country, and region. The keys arrive already lower-cased, so from_attrs/1
normalisation is a no-op here but kept for consistency with the other schemas.
Summary
Functions
Builds a Geoblock from the raw (JSON-decoded) attributes returned by the
geoblock endpoint. Keys may be in camelCase (atom or string); they are
normalised to the snake_case fields. Returns {:error, {:missing_fields, fields}} when the blocked flag is absent.
Types
Functions
Builds a Geoblock from the raw (JSON-decoded) attributes returned by the
geoblock endpoint. Keys may be in camelCase (atom or string); they are
normalised to the snake_case fields. Returns {:error, {:missing_fields, fields}} when the blocked flag is absent.