package polymarket

  1. Overview
  2. Docs
On This Page
  1. Side Enum
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Primitives.SideSource

Side Enum

Trade side (Buy/Sell) shared across Data API and CLOB API.

Sourcetype t =
  1. | Buy
  2. | Sell
    (*

    Buy or Sell side for trades and orders

    *)
Sourceval to_string : t -> string

Convert to string ("BUY" or "SELL")

Sourceval of_string : string -> t

Parse from string, raises on invalid input

Sourceval t_of_yojson : Yojson.Safe.t -> t

Parse from JSON string

Sourceval yojson_of_t : t -> Yojson.Safe.t

Convert to JSON string

Sourceval pp : Format.formatter -> t -> unit
Sourceval equal : t -> t -> bool