package polymarket

  1. Overview
  2. Docs
OCaml client library for the Polymarket prediction market API

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=4eb4c5d2f63ff081c9713d90be5a51b2
sha512=0e3de0c9b40683e09ab8f9f966a44784ef1b9b482c3eefef84104a7e8042c92f1d79893ee9588b24fa3d0decaed7f365509f4d1c23c66ce8328efb64e721f276

doc/polymarket.rtds/Polymarket_rtds/Client/Crypto_prices/index.html

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.