Credit markets (Morpho Midnight)
credit_marketsFixed-rate, fixed-term credit markets (Morpho Midnight, not Cardano Midnight): per market the chain, loan token, maturity and days left, collateral with LLTV and oracle, credit outstanding, posted lend and borrow offers, the best lender and borrower APR and the quotes at 1k, 10k and 100k. Rates are APR (1/P − 1 over the years left), never APY, before fees, not guaranteed. Posted offers are not fillable liquidity: totals count one cap per shared budget. Also whether any Morpho vault lends into Midnight. FREE.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "credit_markets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loan | No | A loan token symbol, e.g. USDC. | |
| sort | No | posted (default) | credit | maturity | lend_apr | borrow_apr. | |
| chain | No | ethereum | base | robinhood | tempo | arc | arbitrum. | |
| limit | No | Markets returned, default 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | When Morpho’s API was read. | |
| meta | No | How current this answer is and what it was read from: `freshness` and the ages behind it. Present on every answer from this server, whatever the tool. | |
| means | Yes | How to read posted, fillable and the quote states. | |
| limits | Yes | What the reading cannot see. | |
| totals | Yes | Markets, live, with offers; credit outstanding, posted lend and borrow, and the fillable floor (one cap per shared budget), per loan token. | |
| markets | Yes | One row per market; null where not read, never zero. | |
| warnings | No | Anything the server wants a caller to know about THIS answer before acting on it. Empty is the normal case and is not a guarantee. | |
| vaultAdapters | Yes | observed, production, adapters, says: a Morpho vault adapter lending into Midnight, where one is on chain. | |
| rateConvention | Yes | How the APR is computed and why it is not an APY. |