Skip to main content

Your open orders (unified)

GET 

/v1/data/lending/orders

A user's own cancellable/pending orders on an order-book or auction lender, normalized into ONE shape:

  • MORPHO_MIDNIGHT_<id> → signed maker limit offers (kind: 'maker-offer'), cancel via /v1/actions/midnight/cancel.
  • TERM_FINANCE_<id> → secondary repo-token listings (kind: 'listing') + primary sealed-bid auction submissions (kind: 'auction-offer'|'auction-bid'), managed via /v1/actions/term/*.

Each order carries a self-describing cancel action ({ method, path, query }) pointing at the exact endpoint, so one Cancel button works for every provider. aprPct is null while an auction price is still sealed. To TAKE (fill) other users' liquidity, use the standard lending actions + the unified ladder at /v1/data/lending/book.

Plain-text reference — GET /v1/data/lending/orders

Parameters

ParameterInTypeRequiredDescription
marketUidquerystringnoMarket uid lender:chainId:asset (or pass lender + chainId).
lenderquerystringnoMORPHO_MIDNIGHT_<id> or TERM_FINANCE_<id> lender key. See the LenderId schema for the full set of accepted values.
chainIdquerystringnoChain ID (aliases: chains, chain). See the ChainId schema for the full set of supported chains.
accountquerystringyesThe order owner whose orders to return.

Response 200

FieldTypeDescription
successTrue
dataobjectA user's own orders across order-book / auction lenders.
data.ordersobject[]
data.orders[].idstringProvider order id — the cancel target (Midnight offer root / Term listingId / auction submission id).
data.orders[].lenderstringProtocol identifier. See the LenderId schema.
data.orders[].chainIdstringEVM chain id, as a decimal string. See the ChainId schema.
data.orders[].kindmaker-offer, listing, auction-offer, auction-bidmaker-offer (Midnight signed limit offer), listing (Term secondary repo-token listing), auction-offer/auction-bid (Term primary sealed-bid submission).
data.orders[].sidelend, borrow
data.orders[].amountstringOrder size, loan-token base units.
data.orders[].assetsnumberSize decimal-scaled to loan-token assets, or null.
data.orders[].aprPctnumberAnnualized rate in percent, or null while sealed.
data.orders[].statusopen, sealed, revealed, filled, closedopen = cancellable now (maker offer / listing); sealed/revealed = auction lifecycle; filled = assigned at clearing; closed = complete or cancelled.
data.orders[].filledAmountstringAmount assigned at clearing (auctions), base units.
data.orders[].maturitynumberMarket/repo maturity, unix seconds.
data.orders[].expirynumberMaker-offer expiry, unix seconds (Midnight).
data.orders[].revealTimenumberAuction reveal window opens, unix seconds (Term).
data.orders[].auctionEndTimenumberAuction closes / clears, unix seconds (Term).
data.orders[].cancelobjectSelf-describing cancel/unlock action — omitted when not cancellable. Fetch path+query to build the cancel transaction.
data.orders[].cancel.methodGET, POST
data.orders[].cancel.pathstring
data.orders[].cancel.queryobject
actionsnull

Example response

{
"success": true,
"data": {
"orders": [
{
"id": "string",
"lender": "TERM_FINANCE_0xABC\u2026",
"chainId": "1",
"kind": "maker-offer",
"side": "lend",
"amount": "1000000000000000000",
"assets": 1.0,
"aprPct": 1.0,
"status": "open",
"filledAmount": "1000000000000000000",
"maturity": 1.0,
"expiry": 1.0,
"revealTime": 1.0,
"auctionEndTime": 1.0,
"cancel": {
"method": "GET",
"path": "/v1/actions/term/unlock-offers",
"query": {}
}
}
]
}
}

Request

Responses

The account's own orders on the market