S

SameDayDesk · Defi Morpho Position

by SameDayDesk

GETBase

$0.02

per call · USD Coin on Base

Base address -> deterministic Morpho borrower position snapshot and collateral-price stress scenarios. Returns LTV, LLTV, health factor, liquidation headroom, source freshness, and scenario outcomes. Read-only indexed observation; direct RPC verification is required before execution.

Endpoint

GET https://agents.samedaydesk.com/defi/morpho-position

4

Calls / 30d

2

Unique payers / 30d

Sep 5

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agents.samedaydesk.com/defi/morpho-position", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agents.samedaydesk.com/defi/morpho-position?address=0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f&shocks=-10%2C-20%2C-30" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f",
  "boundary": "Read-only indexed observation; verify against direct RPC before execution.",
  "chain": {
    "id": 8453,
    "name": "Base mainnet"
  },
  "ok": true,
  "positionCount": 1,
  "positions": [
    {
      "marketId": "0x...",
      "risk": {
        "currentLtvPct": 72,
        "healthFactor": 1.194,
        "liquidatableAtIndexedState": false,
        "liquidationLtvPct": 86
      },
      "scenarios": [
        {
          "collateralPriceShockPct": -10,
          "healthFactor": 1.075,
          "liquidatable": false
        }
      ]
    }
  ],
  "source": {
    "directRpc": "required before execution",
    "indexed": "Morpho API"
  }
}

Payment details

Pay to0x8904df3de6dfee6a7c8cc38619d2f17806213cee
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of DeFi and the homepage with a featured placement.

Get featured →

More from SameDayDesk & similar services