package polymarket

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

Module Polymarket_rtds.ClientSource

High-level WebSocket client for Polymarket Real-Time Data Socket (RTDS).

Provides typed streaming access to crypto prices and comments.

Unified RTDS Client

Sourcetype t

RTDS client handle.

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

Connect to the RTDS WebSocket.

Get the stream of parsed messages.

Sourceval subscribe : t -> subscriptions:Types.subscription list -> unit

Subscribe to topics.

Sourceval unsubscribe : t -> subscriptions:Types.subscription list -> unit

Unsubscribe from topics.

Sourceval close : t -> unit

Close the connection.

Convenience Clients

Sourcemodule Crypto_prices : sig ... end

Specialized client for crypto price streams.

Sourcemodule Comments : sig ... end

Specialized client for comment streams.