# Ozmium Fixed-Rate Borrow Calldata (Morpho Midnight)

> Ozmium Fixed-Rate Borrow Calldata (Morpho Midnight) is a paid API for AI agents from ozmium.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Quotes the live Morpho Midnight fixed-rate bid book for a given market and encodes slippage-guarded borrow transaction calldata, locking the rate at execution maturity.

## Facts

- Endpoint: POST https://ozmium.org/v1/tx/fixed/borrow
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-fixed-rate-borrow-calldata-morpho-midnight-e2bd6e08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K2xgtD6LmfIDiLiKChcW-

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 ozmium-fixed-rate-borrow-calldata-morpho-midnight-e2bd6e08 -d '<json body>'
```

Example prompt: I already have collateral supplied — can you generate the fixed-rate borrow calldata on Morpho Midnight for market 0xabc123, borrowing 500 USDC (in atomic units) from my wallet 0xMyWallet, with slippage protection?

## When to prefer this

Use this endpoint when you need ready-to-broadcast calldata for a fixed-rate borrow on Morpho Midnight and your collateral is already supplied. It handles bid-book quoting, slippage guarding, and calldata encoding in a single call, saving you from manually interacting with the Morpho protocol. Prefer this over variable-rate alternatives when you want a predictable, locked borrowing cost for the market's maturity duration.

## Known failure modes

- Insufficient collateral supplied — borrow will revert on-chain if collateral hasn't been deposited first
- Invalid or unknown marketId — returns error if market does not exist on Morpho Midnight
- Slippage exceeded — if live bid book prices shift beyond the worst-price guard, calldata may be invalid at execution time
- Assets value too large — if requested loan exceeds available liquidity in the bid book
- Malformed owner address — returns error if wallet address is not a valid Ethereum address
- Rate lock expiry — fixed rate is locked at execution time; delays between quote and broadcast may cause stale pricing

## How this service works

Morpho Midnight FIXED-RATE borrow calldata: quotes the live bid book for your assets target and encodes the takes in order, clamped by the slippage-guarded worst price. Rate locks at execution to the market maturity. Collateral must already be supplied. POST /v1/tx/fixed/borrow { marketId, assets (atomic loan), owner }.

## Output

Returns an ordered array of transaction steps, each with a target contract address (to), encoded calldata (data), and ETH value (value), along with the target network identifier. Steps are ready to be signed and broadcast by the owner's wallet to execute the fixed-rate borrow.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "steps": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "to": {
          "type": "string"
         },
         "data": {
          "type": "string"
         },
         "value": {
          "type": "string"
         }
        }
       }
      },
      "network": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-fixed-rate-borrow-calldata-morpho-midnight-e2bd6e08/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ozmium.org](https://www.zero.xyz/host/ozmium.org/llms.txt)
