Module V1.Mytrades

Gets all trades executed by this api user on Gemini trading exchange over the REST api.

type trade = {
  1. price : string;
  2. amount : string;
  3. timestamp : Timestamp.Sec.t;
  4. timestampms : Timestamp.Ms.t;
  5. type_ : Side.t;
  6. aggressor : bool;
  7. fee_currency : Currency.Enum_or_string.t;
  8. fee_amount : string;
  9. tid : int64;
  10. order_id : int64;
  11. client_order_id : string option;
  12. is_auction_fill : bool;
  13. is_clearing_fill : bool;
  14. symbol : Symbol.Enum_or_string.t;
  15. exchange : Exchange.t;
}

Represents one instance of a trade exchanged on Gemini.

val trade_to_yojson : trade -> Yojson.Safe.t
val trade_of_yojson : Yojson.Safe.t -> trade Ppx_deriving_yojson_runtime.error_or
val sexp_of_trade : trade -> Sexplib0.Sexp.t
val trade_of_sexp : Sexplib0.Sexp.t -> trade
type request = {
  1. symbol : Symbol.t;
  2. limit_trades : int option;
  3. timestamp : Timestamp.Sec.t option;
}

Trade request parameters.

val request_of_yojson : Yojson.Safe.t -> request Ppx_deriving_yojson_runtime.error_or
type response = trade list

Mytrades repsonse type- the type of a list trades.

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