package gemini
Represents the status of an order on the Gemini trading exchange over the REST api.
val request_of_yojson :
Yojson.Safe.t ->
request Ppx_deriving_yojson_runtime.error_or
type response = {
client_order_id : string option;
order_id : int64;
id : int64;
symbol : Symbol.Enum_or_string.t;
exchange : Exchange.t;
avg_execution_price : string;
side : Side.t;
type_ : Order_type.t;
timestamp : Timestamp.Sec.t;
timestampms : Timestamp.Ms.t;
is_live : bool;
is_cancelled : bool;
was_forced : bool;
executed_amount : string;
remaining_amount : string;
options : Order_execution_option.t list;
price : string;
original_amount : string;
}
include Rest.Operation.S
with type request := request
with type response := response
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>