# Morpho Borrower Position Snapshot & Stress Tester (Base)

> Morpho Borrower Position Snapshot & Stress Tester (Base) is a paid API for AI agents from agents.samedaydesk.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns a deterministic snapshot of a Morpho Protocol borrower's position on Base mainnet — including LTV, LLTV, health factor, liquidation headroom, and collateral-price stress scenario outcomes.

## Facts

- Endpoint: GET https://agents.samedaydesk.com/defi/morpho-position
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/morpho-borrower-position-snapshot-stress-tester-base-d14a9790
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7ag7JIZBC7xg__qTiUCqU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability morpho-borrower-position-snapshot-stress-tester-base-d14a9790
```

Example prompt: What's the current health factor and liquidation headroom for Morpho borrower 0xAbCd1234...5678 on Base, and run collateral price shocks of -10, -20, and -30 percent so I can see the stress scenario outcomes?

## When to prefer this

Choose this endpoint when you need a quick, structured, agent-ready risk snapshot of a specific Morpho Protocol borrower position on Base mainnet — especially when you want collateral price stress scenarios computed in a single call without writing RPC queries. It is ideal for pre-trade risk checks, liquidation monitoring, and portfolio health audits. Prefer it over raw RPC calls when you need formatted output with health metrics and scenario outcomes; always verify with direct RPC before executing any on-chain transaction.

## Known failure modes

- Invalid or malformed EVM address returns a validation error
- Address has no active Morpho borrower position — returns empty or null position data
- Shock parameter malformed (non-numeric or wrong delimiter) causes parsing error
- Stale indexed data if the indexer lags behind Base chain tip — check source freshness field
- Network or RPC indexer downtime causes 5xx or timeout response

## How this service works

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.

## Output

A structured JSON snapshot containing the borrower's current LTV, LLTV, health factor, liquidation headroom, data source freshness timestamp, and — if price shocks were requested — a set of scenario outcomes showing position viability at each specified collateral price decline. All data is read-only and indexed; direct RPC verification is recommended before taking any on-chain action.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "shocks": {
       "type": "string",
       "description": "Optional comma-separated collateral-price shocks in percent."
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Borrower EVM address on Base mainnet."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "address",
      "chain",
      "positionCount",
      "positions",
      "source",
      "boundary"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "chain": {
       "type": "object"
      },
      "source": {
       "type": "object"
      },
      "address": {
       "type": "string"
      },
      "boundary": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      },
      "positions": {
       "type": "array"
      },
      "positionCount": {
       "type": "integer"
      },
      "latestIndexedAt": {
       "type": "string",
       "nullable": true
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/morpho-borrower-position-snapshot-stress-tester-base-d14a9790/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.samedaydesk.com](https://www.zero.xyz/host/agents.samedaydesk.com/llms.txt)
