package gemini

  1. Overview
  2. Docs

Represents the status of an order on the Gemini trading exchange over the REST api.

type request = {
  1. order_id : int64;
}
val request_of_yojson : Yojson.Safe.t -> request Ppx_deriving_yojson_runtime.error_or
type response = {
  1. client_order_id : string option;
  2. order_id : int64;
  3. id : int64;
  4. symbol : Symbol.Enum_or_string.t;
  5. exchange : Exchange.t;
  6. avg_execution_price : string;
  7. side : Side.t;
  8. type_ : Order_type.t;
  9. timestamp : Timestamp.Sec.t;
  10. timestampms : Timestamp.Ms.t;
  11. is_live : bool;
  12. is_cancelled : bool;
  13. is_hidden : bool;
  14. was_forced : bool;
  15. executed_amount : string;
  16. remaining_amount : string;
  17. options : Order_execution_option.t list;
  18. price : string;
  19. original_amount : string;
}
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
OCaml

Innovation. Community. Security.