polymarket.common
Primitives.Side
polymarket
polymarket.clob
polymarket.data
polymarket.gamma
polymarket.http
polymarket.rate_limiter
polymarket.rfq
polymarket.rtds
polymarket.websocket
polymarket.wss
ppx_polymarket_enum
Trade side (Buy/Sell) shared across Data API and CLOB API.
type t =
| Buy
| Sell
Buy or Sell side for trades and orders
val to_string : t -> string
Convert to string ("BUY" or "SELL")
val of_string : string -> t
Parse from string, raises on invalid input
val t_of_yojson : Yojson.Safe.t -> t
Parse from JSON string
val yojson_of_t : t -> Yojson.Safe.t
Convert to JSON string
val pp : Format.formatter -> t -> unit
val equal : t -> t -> bool