GET/v0/midnight/markets

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/morpho/v0/midnight/marketsCache cached 10s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Cursor-paginated list of Morpho Midnight fixed-rate lending markets and maturities.

Try this endpoint

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/morpho/v0/midnight/markets?limit=5"

Parameters

nameintypedescription
chain_idsquerystroptionalOptional chain IDs filter.
active_onlyquerystroptionalFilter active maturities ('true'/'false').
listedquerystroptionalFilter listed markets ('true'/'false').
sort_byquerystroptionalSort field (total_units, maturity, lend_depth, borrow_depth).
sort_directionquerystroptionalSort direction ('asc'/'desc').
limitqueryintoptionalPage size (default 100).
default: 20
example: 5
cursorquerystroptionalOpaque pagination cursor returned by the previous page.

Response

type: object
pagination: none
sample: {
  "cursor": "str",
  "data": "array[5]"
}