package polymarket

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

Module Client.Crypto_pricesSource

Specialized client for crypto price streams.

Sourcetype source =
  1. | Binance
Sourcetype t

Crypto prices client handle.

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

Connect to Binance crypto price stream.

Connect to Chainlink crypto price stream.

Get the stream of crypto price messages.

Sourceval symbols : t -> string list option

Get the subscribed symbols.

Sourceval source : t -> source

Get the price data source.

Sourceval close : t -> unit

Close the connection.