Orderbook Endpoints
getMatchedOrder
Gets a specific matched order by id.
Method: query
isSigned: false
Parameters
Name | Type | Description | Optional |
---|---|---|---|
orderId | Text | The specific matched order you wish to get | No |
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;
};