# CoinAnk Long/Short Ratio Realtime API (via claw402 x402 Gateway)

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

Returns real-time long/short ratio data for a specified cryptocurrency from CoinAnk, accessed via USDC micropayment on the x402 protocol.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/coinank/longshort/realtime
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinank-long-short-ratio-realtime-api-via-claw402-x402-gateway-e04d6f07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wje0asGNMzbiRxWTvMMMt

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-realtime-api-via-claw402-x402-gateway-e04d6f07
```

Example prompt: What's the real-time long/short ratio for Bitcoin right now? Use the CoinAnk data feed and check the 1-hour interval.

## When to prefer this

Use this endpoint when you need real-time long/short ratio data from CoinAnk for a specific cryptocurrency and prefer to pay per-call in USDC without managing API keys or subscriptions. Prefer this over alternatives when using the x402 micropayment protocol in an autonomous agent context.

## Known failure modes

- Payment not received or wallet insufficient — 402 returned, call not processed
- Invalid baseCoin value — empty or malformed data array returned
- Unsupported interval value — empty data or error response
- Upstream CoinAnk API unavailable — proxy returns error or empty data
- Network timeout — no response from claw402 gateway

## 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 code 0 and a data array containing real-time long/short ratio figures for the requested coin and interval, reflecting current trader positioning in crypto derivatives markets.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "baseCoin": "BTC",
   "interval": "1h"
  }
 }
}
```

## 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": {
      "baseCoin": {
       "type": "string"
      },
      "interval": {
       "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-realtime-api-via-claw402-x402-gateway-e04d6f07/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)
