Skip to main content

MarketTerm

A fixed-term entry in a rate card, in LendingMarket.terms[]. Emitted by every fixed-term lender (Lista broker, Midnight, Term Finance, Exactly, Teller, TermMax). Borrowers pick one and pass its termId to the borrow action. NOTE termId semantics differ per lender — see the field description.

termIdinteger

Term identifier — MEANING IS LENDER-SPECIFIC. Exactly and TermMax: the pool/market unix MATURITY timestamp. Lista: the broker-defined product id. Teller: the duration in seconds (rolling term). Midnight and Term Finance: 0, a placeholder (single maturity per market, so the id carries no information). Pass to /v1/actions/lending/borrow?termId=…. Numeric on-chain; some upstream feeds serialize it as a string — coerce with Number() when comparing.

Example: 2
depositAprnumbernullable

Annualised fixed LEND rate at this maturity, in percent (Exactly only — its fixed pools quote both sides).

availablenumbernullable

Borrowable liquidity at this maturity in loan-token human units (Exactly only).

durationDaysnumber

How long the position is locked at the fixed rate, in days (e.g. 7, 14, 30).

Example: 7
durationSecsnumbernullable

Term duration in seconds (raw on-chain value).

Example: 604800
aprnumber

Annualised borrow APR for this term, in percent (e.g. 3.85 = 3.85%). Same unit as variableBorrowRate / stableBorrowRate. For order-book markets (Midnight) this is the 0-notional top-of-book (cheapest) rate — see aprAtAmount for the size-weighted rate.

Example: 3.85
aprAtAmountnumbernullable

Size-weighted (VWAP) borrow APR % at the supplied debt notional, for order-book fixed-term markets (Morpho Midnight): the borrow book filled cheapest-first, (Σ filledᵢ·aprᵢ)/amount. Present only when an amount is supplied AND the term carries an order-book ladder; broker rate cards (Lista, single flat rate) omit it and apr already applies at any size.

fillablenumbernullable

Total loan-token depth in this term's order book — the maximum borrow openable at this maturity. Present only for order-book terms with an amount supplied.

cappedbooleannullable

True when the supplied debt notional exceeds fillable — the book can't fully fund the borrow at this maturity (aprAtAmount is then the drain-the-book VWAP).

ladder object[]nullable

Order-book borrow ladder (best-borrow first) for order-book fixed-term markets (Midnight). Only serialized when depth=true (bulky). aprAtAmount is the pre-computed size-weighted rate; use this to re-derive it at any amount.

  • Array [
  • aprnumber

    Annualised borrow rate at this tier (%).

    unitsstring

    Credit/debt units at this tier (raw).

    assetsnumber

    Loan-token size available at this tier.

  • ]
  • MarketTerm
    {
    "termId": 2,
    "depositApr": 0,
    "available": 0,
    "durationDays": 7,
    "durationSecs": 604800,
    "apr": 3.85,
    "aprAtAmount": 0,
    "fillable": 0,
    "capped": true,
    "ladder": [
    {
    "apr": 0,
    "units": "string",
    "assets": 0
    }
    ]
    }