Morpho

org.morpho由 morpho.org 發布官方發布者v1.0.0更新於 Nov 7, 2026

Read Morpho vaults and markets data and prepare unsigned transactions.

已驗證Streamable HTTP可網頁執行金融知識與記憶

概覽

AI 產生的概覽

讀取 Morpho 借貸協議的金庫、Blue 與 Midnight 市場及持倉資料,並產生待使用者簽署的未簽署 DeFi 交易。

可以做什麼
  • 探索並查詢金庫、Blue 市場與 Midnight 市場,支援篩選與分頁
  • 讀取使用者的借貸持倉、代幣餘額與授權額度
  • 產生存款、提款、供應、借款、還款、抵押品調整、再融資、遷移與獎勵領取的未簽署交易
  • 產生 Midnight 固定利率的出借、借款、贖回、還款與取消掛單交易
  • 在簽署前依 Morpho 操作限額模擬交易
  • 依語意相似度檢索 Morpho 官方文件
適用情境
適合需要研究 Morpho 金庫與市場機會、查看錢包借貸持倉,或為以太坊、Base 等支援鏈組出可直接簽署的 Morpho 交易時使用。
執行需求
遠端 streamable HTTP 端點;未宣告任何套件、環境變數或請求標頭。以 RPC 為基礎的工具僅接受列出的鏈代稱,且需要錢包來簽署回傳的交易。
安裝前請注意
此伺服器會產生真實的金融交易,包括存款、借款、抵押品提領、再融資與遷移,簽署後即會移動資金。回傳結果皆為未簽署交易,使用者須在簽署前核對交易、授權、健康因子警告與模擬失敗訊息,並留意結果中的到期時間。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Morpho,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/org.morpho%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "morpho": {
      "type": "http",
      "url": "https://mcp.morpho.org/"
    }
  }
}

工具

53

morpho_health_check

Health Check

Check the health status of the MCP server and connected services

無需輸入參數。

morpho_get_supported_chains

Get Supported Chains

List every chain the Morpho MCP serves, by name, with whether Morpho Blue markets, Morpho Vaults (V1 or V2) and Midnight are supported on it. Blue and Vault support come from the Morpho API chain list the read tools use; Midnight support also requires the chain to be accepted by the Midnight tools.

無需輸入參數。

morpho_get_token_balance

Get Token Balance

Get token balance and whether the user needs to approve Morpho or the Bundler before writing. Balance and allowances are self-describing TokenAmounts.

輸入參數chain必填userAddress必填tokenAddress必填

morpho_simulate_transactions

Simulate Transactions

Simulate transactions on the latest block with eth_simulateV1 and check them against the limits of the Morpho action the user is taking, without sending anything. Use mode "preview" for unsigned calls, listing pending approvals or permits in `authorizations`; use mode "final" for calls whose signatures are already in the calldata, or pass a raw signed transaction as `signedTransaction`. `limits.operations` names each Morpho action in the bundle, for example `{ type: "vaultV2Deposit", vault, inputs: { assets } }` or `{ type: "blueBorrow", marketId, inputs: { assets } }`, so the simulation checks what the user pays, receives and holds; when a prepare tool returned `simulation_limits`, pass that as `limits`; use "none" only for bundles no operation type covers (reward claims, approval-only bundles). Amounts are integer strings in base units. Returns every simulated call, transfers, per-account asset changes and the checked limits, or `status: "failed"` with the error code and revert data. Health factor and LTV are not checked. Nothing is signed or sent.

輸入參數mode必填limits必填chainId必填blockNumbertransactions必填authorizations

morpho_prepare_deposit

Prepare Deposit

Prepare a deposit into a Morpho vault. Checks on-chain allowance and returns a ready-to-sign transactions array with approval txs (if needed) followed by the deposit tx. Handles USDT reset-to-zero and DAI non-standard approval.

輸入參數chain必填amount必填userAddress必填vaultAddress必填

morpho_prepare_withdraw

Prepare Withdraw

Prepare a withdraw from a Morpho vault. Returns a ready-to-sign transactions array. Supports "max" for full withdrawal. A vault-share approval transaction may come first and is listed in requirements.

輸入參數chain必填amount必填userAddress必填vaultAddress必填

morpho_prepare_supply

Prepare Supply

Prepare a supply to a Morpho Blue market. Checks on-chain allowance and returns a ready-to-sign transactions array with approval txs (if needed) followed by the supply tx. Handles USDT reset-to-zero and DAI non-standard approval.

輸入參數chain必填amount必填marketId必填userAddress必填

morpho_prepare_borrow

Prepare Borrow

Prepare a borrow on a Morpho Blue market. Returns a ready-to-sign transactions array with the borrow tx. Includes health factor check against existing collateral position. A BlueBundlesV1 authorization transaction may come first in transactions.

輸入參數chain必填marketId必填userAddress必填borrowAmount必填

morpho_prepare_repay

Prepare Repay

Prepare a repay on a Morpho Blue market. Checks on-chain allowance and returns a ready-to-sign transactions array with approval txs (if needed) followed by the repay tx. Supports "max" for full repayment. Handles USDT reset-to-zero and DAI non-standard approval.

輸入參數chain必填amount必填marketId必填userAddress必填

morpho_prepare_supply_collateral

Prepare Supply Collateral

Prepare a supply of collateral tokens to a Morpho Blue market without borrowing. Checks on-chain allowance and returns a ready-to-sign transactions array with approval txs (if needed) followed by the supply collateral tx. Handles USDT reset-to-zero and DAI non-standard approval.

輸入參數chain必填amount必填marketId必填userAddress必填

morpho_prepare_withdraw_collateral

Prepare Withdraw Collateral

Prepare a withdrawal of collateral tokens from a Morpho Blue market position. Returns a ready-to-sign transactions array. Supports "max" for full collateral withdrawal. Includes health factor check when user has active borrows. A BlueBundlesV1 authorization transaction may come first in transactions.

輸入參數chain必填amount必填marketId必填userAddress必填

morpho_prepare_claim_rewards

Prepare Claim Rewards

Fetch a user's claimable Merkl rewards and prepare a single claim transaction against the canonical Merkl Distributor (0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae). Returns a ready-to-sign transaction; if nothing is claimable, returns an empty transactions array with an info-level warning. No on-chain approval needed — the Distributor pulls from its own balance via Merkle proofs.

輸入參數chain必填userAddress必填

morpho_prepare_redeem

Prepare Redeem

Prepare a share-based redemption from a Morpho Vault V1 or V2. Checks share allowance and supports "max" for the full share balance. A vault-share approval transaction may come first and is listed in requirements.

輸入參數chain必填shares必填userAddress必填vaultAddress必填

morpho_prepare_redeem_in_kind

Prepare Redeem In Kind

Prepare an in-kind redemption from a Morpho Vault V1 or V2, exiting through its underlying Blue markets. A vault-share approval transaction may come first and is listed in requirements.

輸入參數chain必填amount必填userAddress必填vaultAddress必填

morpho_prepare_force_withdraw

Prepare Force Withdraw

Prepare a Vault V2 force withdrawal. The SDK selects the vault adapter and deallocates as needed.

輸入參數chain必填assets必填userAddress必填vaultAddress必填

morpho_prepare_force_redeem

Prepare Force Redeem

Prepare a Vault V2 share redemption after user-directed market deallocations. Each deallocation amount should include a buffer for share-price drift.

輸入參數chain必填shares必填userAddress必填vaultAddress必填deallocations必填

morpho_prepare_migrate_to_vault_v2

Prepare Migrate To Vault V2

Prepare migration of shares from a Vault V1 into a Vault V2 with the same underlying asset. A vault-share approval transaction may come first and is listed in requirements.

輸入參數chain必填shares必填userAddress必填vaultAddress必填targetVaultAddress必填

morpho_prepare_blue_withdraw

Prepare Blue Withdraw

Prepare a supply-side withdrawal from a Morpho Blue market. Supports "max" for the full supply position. A BlueBundlesV1 authorization transaction may come first in transactions.

輸入參數chain必填marketId必填userAddress必填withdrawAmount必填

morpho_prepare_supply_collateral_and_borrow

Prepare Supply Collateral And Borrow

Prepare one transaction that supplies collateral and borrows from a Morpho Blue market, including when the user has no collateral on-chain yet. A BlueBundlesV1 authorization transaction may come first in transactions.

輸入參數chain必填marketId必填userAddress必填borrowAmount必填collateralAmount必填

morpho_prepare_repay_and_withdraw_collateral

Prepare Repay And Withdraw Collateral

Prepare a combined Morpho Blue debt repayment and collateral withdrawal. Supports "max" for full repayment or all collateral. A BlueBundlesV1 authorization transaction may come first in transactions.

輸入參數chain必填marketId必填repayAmount必填userAddress必填withdrawCollateralAmount必填

morpho_prepare_refinance

Prepare Refinance

Prepare a full migration of a Morpho Blue borrow position into a destination market with matching loan and collateral tokens. A BlueBundlesV1 authorization transaction may come first in transactions.

輸入參數chain必填marketId必填userAddress必填destinationMarketId必填

morpho_prepare_midnight_take_lend

Prepare Midnight Take Lend

Prepare a fixed-rate lend on a Midnight market by taking the best ask offers through MidnightBundlesV2. First call `morpho_midnight_get_market` for the loan token and `morpho_midnight_get_book_quote` with side `asks` and the same amount to check the rate and depth. The tool re-quotes the asks book itself. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填amount必填marketId必填slippageuserAddress必填

morpho_prepare_midnight_take_borrow

Prepare Midnight Take Borrow

Prepare a fixed-rate borrow on a Midnight market against collateral already supplied, by taking the best bid offers through MidnightBundlesV2. First call `morpho_midnight_get_user_position` to check collateral and `morpho_midnight_get_book_quote` with side `bids` and the same amount. Use `morpho_prepare_midnight_supply_collateral_take_borrow` when collateral is not supplied yet. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填amount必填marketId必填slippageuserAddress必填

morpho_prepare_midnight_supply_collateral_take_borrow

Prepare Midnight Supply Collateral Take Borrow

Prepare supplying collateral and a fixed-rate borrow on a Midnight market in one MidnightBundlesV2 transaction, taking the best bid offers. First call `morpho_midnight_get_market` for the collateral index and tokens, and `morpho_midnight_get_book_quote` with side `bids` and the same amount. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填amount必填marketId必填slippageuserAddress必填collateralIndexcollateralAmount必填

morpho_prepare_midnight_take_withdraw

Prepare Midnight Take Withdraw

Prepare exiting a Midnight lend position before maturity: redeems withdrawable credit, then sells the rest to the best bid offers through MidnightBundlesV2. First call `morpho_midnight_get_user_position` for the credit and `morpho_midnight_get_book_quote` with side `bids` and the same amount. After maturity use `morpho_prepare_midnight_redeem`. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填amount必填marketId必填slippageuserAddress必填

morpho_prepare_midnight_take_repay_withdraw_collateral

Prepare Midnight Take Repay Withdraw Collateral

Prepare repaying Midnight debt before maturity by buying back units from the best ask offers, then optionally withdrawing collateral, in one MidnightBundlesV2 transaction. First call `morpho_midnight_get_user_position` for the debt and collateral and `morpho_midnight_get_book_quote` with side `asks` and the same amount. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填amount必填marketId必填slippageuserAddress必填collateralIndexcollateralAmount

morpho_prepare_midnight_supply_collateral

Prepare Midnight Supply Collateral

Prepare supplying collateral to a Midnight market directly on Midnight. First call `morpho_midnight_get_market` for the collateral index and token. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填amount必填marketId必填userAddress必填collateralIndex

morpho_prepare_midnight_redeem

Prepare Midnight Redeem

Prepare redeeming Midnight lend credit for loan tokens, limited to what the market can pay out now. First call `morpho_midnight_get_user_position` for the credit. Before maturity a market with a continuous fee leaves some credit; redeem again after maturity. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填amountmarketId必填userAddress必填

morpho_prepare_midnight_repay_withdraw_collateral

Prepare Midnight Repay Withdraw Collateral

Prepare repaying Midnight debt at face value, withdrawing collateral, or both, in one MidnightBundlesV2 transaction. First call `morpho_midnight_get_user_position` for the debt and collateral. To repay at the book price before maturity, use `morpho_prepare_midnight_take_repay_withdraw_collateral`. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填marketId必填repayAmountuserAddress必填collateralIndexcollateralAmount

morpho_prepare_midnight_cancel_offers

Prepare Midnight Cancel Offers

Prepare cancelling a maker's Midnight offer groups through MidnightBundlesV2. First call `morpho_midnight_list_user_offer_groups` for the maker's group IDs. Cancels each group whatever has already been filled. Returns unsigned transactions, approval and MidnightBundlesV2 authorization first, plus a simulation and warnings.

輸入參數chain必填groups必填userAddress必填

morpho_prepare_midnight_set_authorization

Prepare Midnight Set Authorization

Prepare authorizing or revoking MidnightBundlesV2 on Midnight for the user. The other Midnight prepare tools add the authorization when they need it, so call this only to revoke it or to authorize ahead of time. Returns one unsigned transaction.

輸入參數chain必填userAddress必填isAuthorized

morpho_get_vault

Get Vault

Get one Morpho vault (V1 or V2) by vault selector `<chainId>:<vaultAddress>`.

輸入參數vault-selector必填

morpho_query_vaults

Query Vaults

List Morpho vaults (V1 and V2) with net APY, total assets and liquidity in USD, curators, warnings, and `version`. Filter by `chain_ids`, `search`, and other supported fields. Paginate by passing back `cursor` until it is null.

輸入參數limitassetscursorsearchsort_byversionschain_idscurator_idsnet_apy_gtenet_apy_lteinclude_facetssort_direction另有 6 個

morpho_get_vault_positions

Get Vault Positions

List a user's Morpho V1 and V2 vault positions with portfolio totals. Paginate by passing back `cursor` until it is null.

輸入參數limitcursorsort_bychain_idsuser-address必填sort_directionasset_addresses

morpho_query_markets

Query Markets

List Morpho Blue markets, filterable by chain, loan token and collateral token. Paginate by passing back `cursor` until it is null.

輸入參數limitcursorlistedsort_bychain_idsloan_tokenssort_directioncollateral_tokens

morpho_get_market

Get Market

Get one Morpho Blue market by market selector.

輸入參數market-selector必填

morpho_get_market_positions

Get Market Positions

List a user's Morpho Blue market positions, filterable by chain. Paginate by passing back `cursor` until it is null.

輸入參數limitcursorchain_idsuser-address必填

morpho_midnight_list_markets

Midnight List Markets

Cursor-paginated list of Midnight markets. **Use this to discover markets.** For a given user's positions on those markets, follow up with `morpho_midnight_list_user_positions`. **Filters.** Address filters (`loan_assets`, `collateral_assets`, `oracle_addresses`, `enter_gates`, `liquidator_gates`) must be combined with `chain_ids` — an address alone is not chain-unique. Lowercase addresses are checksummed server-side. Pass `active_only=true` to exclude markets past maturity. **Pagination.** Response follows the list envelope: `{ cursor, data }`. Pass back `cursor` verbatim on the next call. A `null` `cursor` means the last page. **Cache.** `public, max-age=5, stale-while-revalidate=2`.

輸入參數limitcursorlistedsort_bychain_idsmarket_idsmaturitiesactive_onlyenter_gatesloan_assetsmaturity_gtematurity_lte另有 11 個

morpho_midnight_get_market

Midnight 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 `morpho_midnight_get_market_state` for dynamic market state. 404s when the id is unknown.

輸入參數market-id必填

morpho_midnight_get_market_state

Midnight Get Market State

Dynamic state 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 market state inside a `data` envelope. Use `morpho_midnight_get_market` for immutable market configuration. 404s when the id is unknown.

輸入參數market-id必填

morpho_midnight_list_user_positions

Midnight List User Positions

Cursor-paginated list of a user's current Midnight positions. **Position type.** `type` is `lend` for positions with credit, `borrow` for positions with debt, or `collateral_only` for positions with no credit or debt but remaining collateral. Closed positions with no credit, no debt, and no remaining collateral are excluded. **Performance fields.** `cost_basis` uses the average cost method and is returned as a WAD-scaled bigint string in loan-token units. `effective_rate_wad` is the unchanged WAD-scaled compounded IRR+ using a 365.25-day year; `effective_apr` is the simple annualized decimal fraction using a 365-day year, capped at `10`, and derived from persisted open lots. Analytics can be `null` when there is not enough attributable history. **Filters.** `chain_ids` is required when `loan_assets` is provided. `collateral_assets` matches configured market collateral tokens across all chains unless `chain_ids` narrows the query; lowercase addresses are checksummed. Range filters exist on `created_at`, `credit`, `debt`, `cost_basis`, and `effective_rate_wad`. `effective_apr` has no filter or sort key. `active_only=true` excludes matured markets. `listed=true` keeps only positions on listed markets; `listed=false` keeps only positions on unlisted markets. **Pagination.** Response envelope: `{ cursor, data }`. Positions are ordered newest-first by `created_at` by default. **Cache.** `public, max-age=2, stale-while-revalidate=1`.

輸入參數limittypescursorlistedsort_bydebt_gtedebt_ltechain_idscredit_gtecredit_ltemarket_idsmaturities另有 16 個

morpho_midnight_list_market_positions

Midnight List Market Positions

Cursor-paginated list of current Midnight positions for a market. `:market-id` is the stable Midnight market id and is globally unique across supported chains. The response uses the same public position item shape as `morpho_midnight_list_user_positions`: `{ cursor, data }`, with `type`, state fields, collateral balances, and performance analytics. **Filters.** Range filters exist on `created_at`, `credit`, `debt`, `cost_basis`, and `effective_rate_wad`. `effective_apr` has no filter or sort key. `active_only=true` excludes matured markets. The path market id is always enforced. **Pagination.** Pass back `cursor` verbatim on the next call. Positions are ordered newest-first by `created_at` by default. **Cache.** `public, max-age=2, stale-while-revalidate=1`.

輸入參數limittypescursorsort_bydebt_gtedebt_ltechain_idsmarket-id必填credit_gtecredit_ltematuritiesactive_only另有 12 個

morpho_midnight_get_user_position

Midnight Get User Position

Detail lookup for a single position by `(market-id, user-address)`. `:market-id` is the stable Midnight market id and is globally unique across supported chains. `:user-address` accepts any casing and is checksummed server-side. Returns the position inside a `data` envelope. When the position is **closed** (no credit, no debt, no remaining collateral) or has never existed for a known market, the endpoint returns zero balances with `type: null`. Positions with `credit == 0 && debt == 0` but non-empty `collaterals` are returned as `type: "collateral_only"`.

輸入參數market-id必填user-address必填

morpho_midnight_get_user_position_performance

Midnight Get User Position Performance

Performance-only lookup for a single position by `(market-id, user-address)`. Returns performance analytics inside a `data` envelope. `effective_rate_wad` is compounded IRR+ using a 365.25-day year; `effective_apr` is simple interest using a 365-day year and is capped at `10` (1000%). The position detail endpoint omits these fields to keep state and performance concerns separate. When the position is closed or has never existed for a known market, this endpoint returns `type: null` and null analytics.

輸入參數market-id必填user-address必填

morpho_midnight_get_offer_group

Midnight Get Offer Group

Returns every offer group matching the onchain group id, regardless of lifecycle status. The maker is not required; optional chain_id and maker query parameters can disambiguate the lookup. Distinct chain, maker, and group-id combinations remain separate, and no match returns an empty data array. The endpoint returns every latest offer revision in each matched group and exposes the current lifecycle as `status`. Each group exposes the shared offer intent as `type`, or `null` when its latest offers have inconsistent `buy` and `reduce_only` values. It does not apply Router mempool admission policy: oracle, token, market-triplet, LLTV, RCF threshold, and other mempool-validation policy checks do not gate retrieval. Each nested offer includes the exact per-offer `ratifier_data` bytes originally submitted, plus `parsed_ratifier_data`, a structured view discriminated by `ratifier_type`. The type is identified by matching `ratifier` against the chain's known Midnight ratifier deployments: `rate_v1` exposes `rate_per_second_wad` and `allowed_taker`, `price_v1` exposes `allowed_taker` (the offer-level `tick` is the ratified price), and `ecrecover` and `setter` expose only their type. A zero `allowed_taker` means any taker may take the offer. An unrecognized ratifier address returns `unknown`; a recognized address whose `ratifier_data` cannot be decoded returns `invalid` with `expected_ratifier_type`.

輸入參數makerchain_idgroup-id必填

morpho_midnight_list_user_offer_groups

Midnight List User Offer Groups

Cursor-paginated list of a user's offer groups with nested offers. The `statuses` filter accepts one or more lifecycle states with OR semantics. The deprecated singular `status` parameter is a single-value alias; requests containing both are rejected. Omitting both defaults to `active` for backward compatibility. **Maturity policy.** The list includes only offers whose maturity is at 15:00 UTC, the maturities Router quotes. Other offers are excluded before lifecycle, filters, type, callback, and group `expiry` are computed, and groups with no such offer are omitted. The by-group endpoint returns every offer regardless of maturity. Lifecycle is derived from every latest 15:00 UTC offer revision before market, asset, maturity, type, callback, or listing filters are applied. `cancelled` has highest priority and requires an explicit `SetConsumed(type(uint128).max)` event; a `Take` reaching the same numeric value remains `filled`. Otherwise, a group is `filled` when every latest leg has no remaining capacity. It is `active` when at least one remaining leg has started and is at or before both its expiry and non-zero maturity. It is `scheduled` when no leg is active but at least one remaining leg starts in the future without having expired or matured. All remaining groups are `expired`. Active takes remain valid at exact expiry or maturity, matching the onchain inclusive boundary. Nested offers are lifecycle-targeted for list results: active returns live remaining-capacity legs, scheduled returns future remaining-capacity legs, filled and cancelled return all latest legs, and expired returns terminal expired or matured legs. Active and scheduled group `expiry` is the maximum not-yet-ended latest-offer horizon; terminal statuses use the complete latest set. Requesting all five statuses returns every group with a 15:00 UTC offer exactly once. **Callbacks.** A group has `callback.type=blue_buy` only when every latest offer considered for the lifecycle has the same callbac

輸入參數limittypescursorgroupslistedstatussort_bystatuseschain_idsmarket_idsmaturitiesloan_assets另有 9 個

morpho_midnight_list_books

Midnight List Books

Returns books for active maturities admitted by the current policy, with market metadata and the top 3 ask/bid levels. Unlisted and past maturities are excluded, even when requested with `ids`. If a maturity leaves the policy, its books are hidden immediately, including books with existing offers. Supports filtering, sorting, and pagination; default sort is `id` ascending.

輸入參數idssortlimitcursorchain_idsmaturitiesloan_tokensmaturity_gtematurity_ltecollateral_tokens

morpho_midnight_get_book

Midnight Get Book

Returns one active book whose maturity is admitted by the current policy, with market metadata and both sides. If its maturity leaves the policy, the book becomes unavailable immediately, including when existing offers remain. A visible book with no offers returns empty `asks` and `bids`. Each side returns up to `depth` levels, sorted best price first.

輸入參數depthmarket-id必填

morpho_midnight_get_book_side

Midnight Get Book Side

Returns one side of a book as price levels grouped by tick with total units, assets, and price, sorted best price first.

輸入參數side必填depthmarket-id必填

morpho_midnight_get_book_side_takeable_offers

Midnight Get Book Side Takeable Offers

Returns up to 1,000 executable offers for one book side, sorted best price first. This endpoint is not paginated and does not accept a limit or cursor.

輸入參數side必填market-id必填

morpho_midnight_get_book_quote

Midnight Get Book Quote

Returns a bundle-ready quote for the requested assets or units, plus expected best/worst average prices and maximum executable liquidity. The endpoint optimizes for successful target-aware bundle execution under contention: `takeable_offers` are best-priced per-offer caps and their total can exceed the requested target, giving a bundle executor fallback liquidity when earlier offers are partially consumed or skipped. At most `limit` (default and maximum 10,000) best-priced takeable offers are walked and returned; prices and availability always describe exactly the returned window. A request that cannot fill within `limit` offers returns 422. Use the returned takeable offers with a bundle abstraction that stops at your requested target and applies your max/min asset or unit protections. If you execute takeable offers independently with Midnight.take, do not submit every returned unit blindly: clamp each offer to your remaining target and current takeability, or you may execute more than intended. If the requested size cannot be fully satisfied at quote time under the selected guard, the endpoint returns 422.

輸入參數side必填limitunitsassetsslippagemarket-id必填average_worst_price

morpho_midnight_list_maker_takeable_offers

Midnight List Maker Takeable Offers

Returns one maker's active offers. A fresh offer is withheld until measured, unless indexed ratifier state proves both a blocker and maker intent through the tree signature, signer-authorization history, or root history. Eligible blocked offers return with `units` set to `0`; missing state and unproven offers naming the maker remain hidden.

輸入參數limitmaker必填cursorgroupsmarket_ids

版本歷史

1
  1. v1.0.0最新Nov 7, 2026

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。