{
  "x402Version": 2,
  "id": 26724,
  "slug": "26724",
  "resource": "https://agents.samedaydesk.com/defi/morpho-position",
  "description": "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.",
  "type": "http",
  "serviceName": "SameDayDesk",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "address": {
            "type": "string"
          },
          "boundary": {
            "type": "string"
          },
          "chain": {
            "type": "object"
          },
          "fetchedAt": {
            "type": "string"
          },
          "latestIndexedAt": {
            "nullable": true,
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "positionCount": {
            "type": "integer"
          },
          "positions": {
            "type": "array"
          },
          "source": {
            "type": "object"
          }
        },
        "required": [
          "ok",
          "address",
          "chain",
          "positionCount",
          "positions",
          "source",
          "boundary"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "address": "0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f",
            "shocks": "-10,-20,-30"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "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"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "address": {
                    "description": "Borrower EVM address on Base mainnet.",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "type": "string"
                  },
                  "shocks": {
                    "description": "Optional comma-separated collateral-price shocks in percent.",
                    "type": "string"
                  }
                },
                "required": [
                  "address"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "boundary": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "object"
                  },
                  "fetchedAt": {
                    "type": "string"
                  },
                  "latestIndexedAt": {
                    "nullable": true,
                    "type": "string"
                  },
                  "ok": {
                    "type": "boolean"
                  },
                  "positionCount": {
                    "type": "integer"
                  },
                  "positions": {
                    "type": "array"
                  },
                  "source": {
                    "type": "object"
                  }
                },
                "required": [
                  "ok",
                  "address",
                  "chain",
                  "positionCount",
                  "positions",
                  "source",
                  "boundary"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_lqj09bnf"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "offer-receipt": {
      "info": {
        "offers": [
          {
            "acceptIndex": 0,
            "format": "eip712",
            "payload": {
              "amount": "20000",
              "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "network": "eip155:8453",
              "payTo": "0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee",
              "resourceUrl": "https://agents.samedaydesk.com/defi/morpho-position",
              "scheme": "exact",
              "validUntil": 1791258777,
              "version": 1
            },
            "signature": "0x15b2ff11a7fbf287be71536b0de4f8ee685c3c6a35fc05dc0f81552c5506df436f2eedfa100f3edfd77e22722df3c2892349fde8ee6a7afde18d55e1cb7a6c881b"
          }
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "offers": {
            "items": {
              "properties": {
                "acceptIndex": {
                  "type": "integer"
                },
                "format": {
                  "type": "string"
                },
                "payload": {
                  "properties": {
                    "amount": {
                      "type": "string"
                    },
                    "asset": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "payTo": {
                      "type": "string"
                    },
                    "resourceUrl": {
                      "type": "string"
                    },
                    "scheme": {
                      "type": "string"
                    },
                    "validUntil": {
                      "type": "integer"
                    },
                    "version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "version",
                    "resourceUrl",
                    "scheme",
                    "network",
                    "asset",
                    "payTo",
                    "amount"
                  ],
                  "type": "object"
                },
                "signature": {
                  "type": "string"
                }
              },
              "required": [
                "format",
                "signature"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "offers"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "morpho",
    "borrower-risk",
    "ltv",
    "health-factor",
    "price-shock",
    "bazaar",
    "builder-code",
    "offer-receipt",
    "payment-identifier"
  ],
  "sourceHost": "agents.samedaydesk.com",
  "lastUpdated": "2026-10-06T03:47:57.031Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-06T03:47:56.788Z"
  },
  "metadata": {
    "serviceName": "SameDayDesk",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "address": "0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f",
              "shocks": "-10,-20,-30"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "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"
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "address": {
                      "description": "Borrower EVM address on Base mainnet.",
                      "pattern": "^0x[0-9a-fA-F]{40}$",
                      "type": "string"
                    },
                    "shocks": {
                      "description": "Optional comma-separated collateral-price shocks in percent.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "address"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "boundary": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "object"
                    },
                    "fetchedAt": {
                      "type": "string"
                    },
                    "latestIndexedAt": {
                      "nullable": true,
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "positionCount": {
                      "type": "integer"
                    },
                    "positions": {
                      "type": "array"
                    },
                    "source": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "address",
                    "chain",
                    "positionCount",
                    "positions",
                    "source",
                    "boundary"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_lqj09bnf"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "offer-receipt": {
        "info": {
          "offers": [
            {
              "acceptIndex": 0,
              "format": "eip712",
              "payload": {
                "amount": "20000",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "network": "eip155:8453",
                "payTo": "0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee",
                "resourceUrl": "https://agents.samedaydesk.com/defi/morpho-position",
                "scheme": "exact",
                "validUntil": 1791258777,
                "version": 1
              },
              "signature": "0x15b2ff11a7fbf287be71536b0de4f8ee685c3c6a35fc05dc0f81552c5506df436f2eedfa100f3edfd77e22722df3c2892349fde8ee6a7afde18d55e1cb7a6c881b"
            }
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "offers": {
              "items": {
                "properties": {
                  "acceptIndex": {
                    "type": "integer"
                  },
                  "format": {
                    "type": "string"
                  },
                  "payload": {
                    "properties": {
                      "amount": {
                        "type": "string"
                      },
                      "asset": {
                        "type": "string"
                      },
                      "network": {
                        "type": "string"
                      },
                      "payTo": {
                        "type": "string"
                      },
                      "resourceUrl": {
                        "type": "string"
                      },
                      "scheme": {
                        "type": "string"
                      },
                      "validUntil": {
                        "type": "integer"
                      },
                      "version": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "version",
                      "resourceUrl",
                      "scheme",
                      "network",
                      "asset",
                      "payTo",
                      "amount"
                    ],
                    "type": "object"
                  },
                  "signature": {
                    "type": "string"
                  }
                },
                "required": [
                  "format",
                  "signature"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "offers"
          ],
          "type": "object"
        }
      },
      "payment-identifier": {
        "info": {
          "required": false
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 16,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "type": "string"
            },
            "required": {
              "type": "boolean"
            }
          },
          "required": [
            "required"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agents.samedaydesk.com",
    "manifest_name": "agents.samedaydesk.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "address": "string",
      "boundary": "string",
      "chain": {},
      "fetchedAt": "string",
      "latestIndexedAt": "string",
      "ok": true,
      "positionCount": 0,
      "positions": [
        "value"
      ],
      "source": {}
    },
    "type": "string"
  }
}