Skip to main content

MidnightOpenOffersResponse

The maker's own open offers on a market, best-rate first.

offers object[]
  • Array [
  • marketIdstring
    lenderstring
    Example: MORPHO_MIDNIGHT_0xABC…
    sidestring

    lend = a bid (buy units); borrow = an ask (sell units).

    Possible values: [lend, borrow]

    tickstring
    aprPctnumber
    Example: 3.49
    sizestring

    Maker-side size, loan-token units.

    expirynumber

    Unix seconds.

    rootstring

    Offer tree root — pass as root to GET /v1/actions/midnight/cancel to invalidate this offer.

  • ]
  • MidnightOpenOffersResponse
    {
    "offers": [
    {
    "marketId": "string",
    "lender": "MORPHO_MIDNIGHT_0xABC…",
    "side": "lend",
    "tick": "string",
    "aprPct": 3.49,
    "size": "string",
    "expiry": 0,
    "root": "string"
    }
    ]
    }