# Ozmium Positions API – DeFi Position Lookup for Base Address

> Ozmium Positions API – DeFi Position Lookup for Base Address is a paid API for AI agents from ozmium.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns live Morpho Blue borrow positions, Morpho vault deposits, Gains Network open leveraged trades, and pending on-chain orders for a given Base wallet address.

## Facts

- Endpoint: GET https://ozmium.org/v1/positions/:address
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-positions-api-defi-position-lookup-for-base-address-c35558ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__uXhOmVyMk2UEBDi7_1ba

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-positions-api-defi-position-lookup-for-base-address-c35558ac
```

Example prompt: Pull up all my open DeFi positions on Base for wallet 0x1234...abcd — I want to see my Morpho Blue collateral, debt, and health factor, plus any open Gains Network leveraged trades with their entry prices and liquidation distances.

## When to prefer this

Use this endpoint when you need a unified, live snapshot of a Base wallet's DeFi risk exposure across Morpho Blue (lending/borrowing) and Gains Network (perpetual leveraged trading) in a single call, especially when you need to surface pending or stranded orders that the Gains Network keyless backend conceals.

## Known failure modes

- Invalid or malformed Base address returns a 400 error
- Address with no positions returns an empty arrays response
- Address on an unsupported network returns empty or network error
- Upstream RPC or subgraph unavailability causes 503 or timeout
- x402 payment not provided or insufficient returns 402 Payment Required

## How this service works

Live Morpho Blue borrow positions (collateral, debt, health factor, liquidation distance), Morpho vault deposits (APY, earnings), Gains Network open leveraged trades (pair, direction, leverage, entry, TP/SL), and on-chain PENDING orders (incl. stranded market orders the keyless backend hides) for any Base address. GET /v1/positions/{address}.

## Output

A JSON object keyed by address and network containing: an array of Morpho Blue borrow positions (collateral, debt, health factor, liquidation distance), Morpho vault deposit details (APY, cumulative earnings), an array of Gains Network open trades (pair index, long/short direction, leverage, entry price, TP/SL), and any on-chain pending orders including stranded market orders not surfaced by the keyless backend.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "properties": {
      "address": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "risk": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "long": {
            "type": "boolean"
           },
           "leverage": {
            "type": "number"
           },
           "pairIndex": {
            "type": "number"
           }
          }
         }
        },
        "address": {
         "type": "string"
        }
       }
      },
      "network": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-positions-api-defi-position-lookup-for-base-address-c35558ac/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)
