The exact POST /order request payload — a signed order plus its routing
metadata — mirroring the CLOB SendOrder object.
The caller constructs every value: sign the order with
Polymarket.Clob.OrderSigner and put the resulting signature here, set owner
to your API-key UUID, and choose the order_type and optional flags. Hand the
finished struct to Polymarket.Clob.post_order/3, which only serialises,
authenticates and transmits it.
signature is the 0x-prefixed order signature; order_type is the time in
force (:gtc default). post_only/defer_exec are omitted from the wire body
when left nil.
Summary
Types
@type order_type() :: :gtc | :fok | :gtd | :fak
Time-in-force for an order: GTC, FOK, GTD or FAK.
@type t() :: %Polymarket.Schemas.SendOrder{ defer_exec: boolean() | nil, order: Polymarket.Schemas.Order.t(), order_type: order_type(), owner: String.t(), post_only: boolean() | nil, signature: String.t() }