Polymarket.Schemas.ClobReward (Polymarket v0.1.1)

Copy Markdown View Source

A CLOB liquidity-reward configuration attached to a Polymarket.Schemas.Market.

Returned (as clobRewards) by the single-event Gamma endpoints (GET /events/:id, /events/slug/:slug); the keyset endpoint omits it.

Summary

Functions

Builds a ClobReward from a decoded (JSON) map, coercing each field.

Types

t()

@type t() :: %Polymarket.Schemas.ClobReward{
  asset_address: String.t() | nil,
  condition_id: String.t() | nil,
  end_date: Date.t() | nil,
  id: String.t() | nil,
  rewards_amount: float() | nil,
  rewards_daily_rate: float() | nil,
  start_date: Date.t() | nil
}

Functions

from_attrs(attrs)

@spec from_attrs(map()) :: {:ok, t()}

Builds a ClobReward from a decoded (JSON) map, coercing each field.