Module V1.Tradevolume

Gets all trade volume executed by on the Gemini trading exchange over the REST api.

type volume = {
  1. account_id : int64 option;
  2. symbol : Symbol.Enum_or_string.t;
  3. base_currency : Currency.Enum_or_string.t;
  4. notional_currency : Currency.Enum_or_string.t;
  5. data_date : string;
  6. total_volume_base : float;
  7. maker_buy_sell_ratio : float;
  8. buy_maker_base : float;
  9. buy_maker_notional : float;
  10. buy_maker_count : int64;
  11. sell_maker_base : float;
  12. sell_maker_notional : float;
  13. sell_maker_count : int64;
  14. buy_taker_base : float;
  15. buy_taker_notional : float;
  16. buy_taker_count : int64;
  17. sell_taker_base : float;
  18. sell_taker_notional : float;
  19. sell_taker_count : int64;
}

The type of a trade volume entity for one particular symbol on the Gemini trading exchange.

val volume_to_yojson : volume -> Yojson.Safe.t
val volume_of_yojson : Yojson.Safe.t -> volume Ppx_deriving_yojson_runtime.error_or
val sexp_of_volume : volume -> Sexplib0.Sexp.t
val volume_of_sexp : Sexplib0.Sexp.t -> volume
type request = unit
val request_of_yojson : Yojson.Safe.t -> request Ppx_deriving_yojson_runtime.error_or
type response = volume list list

The type of a trade volume response, which is a list of list of volumes grouped by exchange symbol.

include Rest.Operation.S with type request := request with type response := response
val name : string

The human readable name of this operation.

val path : string list

The uri path of the REST endpoint.

val request_to_yojson : request -> Yojson.Safe.t
val sexp_of_request : request -> Sexplib0.Sexp.t
val request_of_sexp : Sexplib0.Sexp.t -> request
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
val post : (module Cfg.S) -> Nonce.reader -> request -> [ Rest.Error.post | `Ok of response ] Async.Deferred.t
val command : string * Async.Command.t