MidnightMarkets
Get market
Detail lookup for a single market. :market-id is the stable Midnight market id and is unique across supported chains, so no chain id is required.
Returns the immutable market configuration inside a data envelope. Use GET /v0/midnight/markets/{market-id}/state for dynamic market state. 404s when the id is unknown.
curl -X GET "https://api.morpho.org/v0/midnight/markets/string"{
"data": {
"chain_id": 8453,
"collaterals": [
{
"liquidation_cursor": "1000000000000000000",
"lltv": "860000000000000000",
"oracle": "0xD09048c8B568Dbf5f189302beA26c9edABFC4858",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"enter_gate": "0x0000000000000000000000000000000000000000",
"liquidator_gate": "0x0000000000000000000000000000000000000000",
"loan_token": "0x4200000000000000000000000000000000000006",
"market_id": "0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614",
"maturity": 1781276400
}
}{
"error": {
"code": "MARKET_NOT_FOUND",
"details": null,
"message": "Market 0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614 not found",
"request_id": "f0e1d2c3-b4a5-4968-8728-1c0d1e2f3a4b"
}
}