# Gloom Perps Rankings API

> Gloom Perps Rankings API is a paid API for AI agents from api.gloom.sh, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-01).

Returns ranked perpetual futures contracts across decentralized exchanges, ordered by metrics like positive funding rate.

## Facts

- Endpoint: GET https://api.gloom.sh/v1/perps/rankings?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gloom-perps-rankings-api-4ed46410
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8i_sEvppCGWxkL-cNO0Il

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 gloom-perps-rankings-api-4ed46410
```

Example prompt: Show me the current rankings of perpetual futures contracts across decentralized exchanges sorted by positive funding rate — I want to see which perps on venues like Hyperliquid are ranked highest right now.

## When to prefer this

Choose this endpoint when you need ranked perpetual futures data across decentralized venues with funding-rate-based ordering. Ideal for DeFi trading agents that need to identify top funding opportunities on DEXes like Hyperliquid without building their own data aggregation pipeline. Prefer over manual on-chain queries when you need pre-ranked, multi-venue perp data in a single call.

## Known failure modes

- Invalid or unsupported properties filter returns empty or error response
- API unavailable returns HTTP 402 or 5xx if payment fails
- Empty data array if no perp markets match criteria
- Rate limiting if payment not processed correctly via x402 protocol

## How this service works

Gloom is a free, open-source finance terminal for desktop and TUI with charts, news, filings, portfolios, alerts, and plugins.

## Output

Returns a JSON array of ranked perpetual futures objects, each containing: rank position, DEX name, venue (e.g. 'hyperliquid'), trading symbol (e.g. 'ETH'), ranking type (e.g. 'funding_positive'), market ID, base asset, asset class ('crypto'), display name, and underlying symbol.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "dex": "default",
    "rank": 1,
    "venue": "hyperliquid",
    "symbol": "ETH",
    "ranking": "funding_positive",
    "marketId": "hyperliquid:default:ETH",
    "baseAsset": "ETH",
    "assetClass": "crypto",
    "displayName": "ETH",
    "underlyingSymbol": null
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gloom-perps-rankings-api-4ed46410/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gloom.sh](https://www.zero.xyz/host/api.gloom.sh/llms.txt)
