V1.Market_data
Market data websockets api for the Gemini trading exchange. This broadcasts only public events and require no authentication.
module Side : sig ... end
Encapsulates various concepts of side in the market dat api.
module Message_type : sig ... end
Represents market data message types supported by the Gemini exchange.
module Event_type : sig ... end
Represents different types of market data events
val heartbeat_of_yojson :
Yojson.Safe.t ->
heartbeat Ppx_deriving_yojson_runtime.error_or
val sexp_of_heartbeat : heartbeat -> Sexplib0.Sexp.t
val heartbeat_of_sexp : Sexplib0.Sexp.t -> heartbeat
module Reason : sig ... end
Different reasons a market data event occured
module Change_event : sig ... end
An change event to an order. The reaosn
field indicates the type of change.
module Trade_event : sig ... end
An trade event of an order.
module Block_trade_event : sig ... end
A block trade event.
module Auction_open_event : sig ... end
An auction open event.
module Auction_result : sig ... end
Represents different results possible from an auction.
module Auction_indicative_price_event : sig ... end
An auction indicative price event.
module Auction_outcome_event : sig ... end
An auction outcome event.
module Auction_event_type : sig ... end
Represents different auction event types.
module Auction_event : sig ... end
type event = [
| `Auction of Auction_event.t
| `Auction_open of Auction_open_event.t
| `Change of Change_event.t
| `Trade of Trade_event.t
| `Block_trade of Block_trade_event.t
]
The type of event, unified over auction, change, and trade events.
val event_of_yojson :
Yojson.Safe.t ->
event Ppx_deriving_yojson_runtime.error_or
val sexp_of_event : event -> Sexplib0.Sexp.t
val event_of_sexp : Sexplib0.Sexp.t -> event
val __event_of_sexp__ : Sexplib0.Sexp.t -> event
module Update : sig ... end
The type of a market data update message.
The type of a market data message- a heartbeat or update.
val sexp_of_message : message -> Sexplib0.Sexp.t
val message_of_sexp : Sexplib0.Sexp.t -> message
val __message_of_sexp__ : Sexplib0.Sexp.t -> message
The type of a market data response.
Authentication syle for this channel. One of `Private
or `Public
type uri_args = [
| `Btcusd
| `Ethusd
| `Ethbtc
| `Zecusd
| `Zecbtc
| `Zeceth
| `Zecbch
| `Zecltc
| `Ltcusd
| `Ltcbtc
| `Ltceth
| `Ltcbch
| `Bchusd
| `Bchbtc
| `Bcheth
| `Lunausd
| `Xtzusd
| `Linkusd
| `Aaveusd
| `Crvusd
| `Injusd
| `Maticusd
| `Ftmusd
| `Dogeusd
| `Cubeusd
| `Chzusd
| `Dotusd
| `Rareusd
| `Qntusd
]
Uri arguments which are appended to the end of the path segment
val sexp_of_uri_args : uri_args -> Sexplib0.Sexp.t
val uri_args_of_sexp : Sexplib0.Sexp.t -> uri_args
val all_of_uri_args : uri_args list
val encode_uri_args : uri_args -> string
Encder from well typed uri arguments to a string suitable for a uri.
val default_uri_args : uri_args option
Defaut uri arguments. Optional for some channels.
val response_of_yojson :
Yojson.Safe.t ->
response Ppx_deriving_yojson_runtime.error_or
val sexp_of_response : response -> Sexplib0.Sexp.t
val response_of_sexp : Sexplib0.Sexp.t -> response
module Csv_of_event : sig ... end
val events_of_response : response -> Csv_of_event.t
Given a response value produce csvable events modularized by event type.
val sexp_of_query : query -> Sexplib0.Sexp.t
val query_of_sexp : Sexplib0.Sexp.t -> query
val encode_query : query -> string * string
Encodes queries as an http header key value pair
module Error : sig ... end