Logo

Orderbook Endpoints

getMatchedOrder

Gets a specific matched order by id.

Method: query
isSigned: false


Parameters

NameTypeDescriptionOptional
orderIdTextThe specific matched order you wish to getNo

Response

Returns: ?MatchedOrder

  where MatchedOrder is defined as:

  public type MatchedOrder = {
    id : OrderID;
    buyPremium : Nat;
    contracts : Nat;
    buy : MatchedOrderSide;
    sell : MatchedOrderSide;
    matchedAt : Time.Time;
  };
  public type OrderID = Text;
  public type MatchedOrderSide = {
    orderId : OrderID;
    principal : Principal;
  };
Previous
getOrder