# CoinAnk Long/Short Ratio Rankings

> CoinAnk Long/Short Ratio Rankings is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetches paginated rankings of cryptocurrency long/short position ratios from CoinAnk market data via the claw402 x402 payment gateway

## Facts

- Endpoint: GET https://claw402.ai/api/v1/coinank/rank/long-short
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinank-long-short-ratio-rankings-581bc515
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f1Vn7Mhpf5ii02s_5WVbX

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 coinank-long-short-ratio-rankings-581bc515
```

Example prompt: Show me the top 20 cryptocurrencies ranked by long/short ratio, sorted by ratio in descending order — I want to see which assets traders are most heavily positioned long versus short right now.

## When to prefer this

Use this endpoint when you need ranked, paginated crypto long/short ratio data from CoinAnk and want to pay per-call in USDC without managing API keys or subscriptions. Prefer over alternatives when you need flexible sorting and pagination of position sentiment data.

## Known failure modes

- Payment not provided or insufficient USDC — returns 402 Payment Required
- Invalid sortBy or sortType parameter values — may return empty or malformed data
- Page or size parameters out of range — returns empty data array
- Upstream CoinAnk data unavailable — may return empty data array or error code
- Network timeout to vergex.trade backend — connection error

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

Returns a JSON object with a status code and a data array containing ranked cryptocurrency long/short ratio entries. Each entry represents a coin's position ratio data, paginated and sorted by the requested criteria.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "page": "1",
   "size": "10",
   "sortBy": "timestamp",
   "sortType": "desc"
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "page": {
       "type": "string"
      },
      "size": {
       "type": "string"
      },
      "sortBy": {
       "type": "string"
      },
      "sortType": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinank-long-short-ratio-rankings-581bc515/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
