# Ozmium Pending Gains Orders Lookup

> Ozmium Pending Gains Orders Lookup is a paid API for AI agents from ozmium.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Fetches all pending (unfilled) Gains Network orders for a given Base wallet address, read directly from the on-chain diamond contract

## Facts

- Endpoint: GET https://ozmium.org/v1/pending-orders/:address
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-pending-gains-orders-lookup-397466f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gmRwrah7aj9v-vzx37tpC

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-pending-gains-orders-lookup-397466f4
```

Example prompt: Can you check if I have any pending orders on Gains Network for my Base wallet 0xAbC123...? I placed a market open order and my USDC seems stuck — I want to see the orderIndex, pair, side, leverage, and trigger price.

## When to prefer this

Use this endpoint when an agent needs to debug or verify pending Gains Network (gTrade) orders on Base mainnet — especially when a market order appears to have vanished or funds look stuck. This reads directly from the on-chain diamond contract, unlike the keyless backend which returns empty for pending market orders. Prefer over generic blockchain explorers when structured, decoded order fields are needed for further automation (e.g. closing a stranded order).

## Known failure modes

- Invalid or malformed Base address returns an error or empty array
- Address with no pending orders returns an empty list (not an error)
- Network congestion may cause delayed on-chain reads
- Non-Base (wrong chain) addresses will return no results
- Rate limiting or payment failure (x402) if USDC micropayment not provided

## How this service works

On-chain PENDING Gains orders for any Base address, read directly from the diamond (the keyless backend returns them empty, which is why a stranded market order looks like lost funds). Each: orderIndex, pairIndex, symbol, side, leverage, locked collateral (USDC), trigger price, and orderType (0=MARKET_OPEN). Full details: GET /v1.

## Output

Returns a list of pending Gains Network orders for the address, each containing: orderIndex, pairIndex, trading symbol, side (long/short), leverage amount, locked USDC collateral, trigger price, and orderType (0=MARKET_OPEN). Reads directly from the on-chain diamond contract, so stranded/unfilled market orders that appear missing in the keyless backend are surfaced here.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "ok": {
         "type": "boolean"
        }
       }
      },
      "network": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-pending-gains-orders-lookup-397466f4/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)
