Skip to main content

UnifiedUserOrder

One of a user's own order-book / auction orders, normalized across providers (Midnight maker offers, Term secondary listings, Term auction submissions). cancel is a self-describing action the UI can fire directly.

idstring

Provider order id — the cancel target (Midnight offer root / Term listingId / auction submission id).

lenderstring
Example: TERM_FINANCE_0xABC…
chainIdstring
Example: 1
kindstring

maker-offer (Midnight signed limit offer), listing (Term secondary repo-token listing), auction-offer/auction-bid (Term primary sealed-bid submission).

Possible values: [maker-offer, listing, auction-offer, auction-bid]

sidestring

Possible values: [lend, borrow]

amountstring

Order size, loan-token base units.

assetsnumbernullable

Size decimal-scaled to loan-token assets, or null.

aprPctnumbernullable

Annualized rate in percent, or null while sealed.

statusstring

open = cancellable now (maker offer / listing); sealed/revealed = auction lifecycle; filled = assigned at clearing; closed = complete or cancelled.

Possible values: [open, sealed, revealed, filled, closed]

filledAmountstring

Amount assigned at clearing (auctions), base units.

maturitynumber

Market/repo maturity, unix seconds.

expirynumber

Maker-offer expiry, unix seconds (Midnight).

revealTimenumber

Auction reveal window opens, unix seconds (Term).

auctionEndTimenumber

Auction closes / clears, unix seconds (Term).

cancel objectnullable

Self-describing cancel/unlock action — omitted when not cancellable. Fetch path+query to build the cancel transaction.

methodstring

Possible values: [GET, POST]

pathstring
Example: /v1/actions/term/unlock-offers
query object
property name*string
UnifiedUserOrder
{
"id": "string",
"lender": "TERM_FINANCE_0xABC…",
"chainId": "1",
"kind": "maker-offer",
"side": "lend",
"amount": "string",
"assets": 0,
"aprPct": 0,
"status": "open",
"filledAmount": "string",
"maturity": 0,
"expiry": 0,
"revealTime": 0,
"auctionEndTime": 0,
"cancel": {
"method": "GET",
"path": "/v1/actions/term/unlock-offers",
"query": {}
}
}