package polymarket

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Client.MarketSource

Sourcetype t

Market channel client handle.

Sourceval connect : sw:Eio.Switch.t -> net:'a Eio.Net.t -> clock:float Eio.Time.clock_ty Eio.Resource.t -> asset_ids:string list -> unit -> t

Connect to the market channel with initial asset subscriptions.

Get the stream of market messages.

Sourceval subscribe : t -> asset_ids:string list -> unit

Subscribe to additional assets.

Sourceval unsubscribe : t -> asset_ids:string list -> unit

Unsubscribe from assets.

Sourceval close : t -> unit

Close the connection.