# CoinAnk Long/Short Ratio Kline (OHLC) Data

> CoinAnk Long/Short Ratio Kline (OHLC) Data 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).

Fetches historical long/short ratio kline (candlestick) data for a crypto symbol across exchanges, paid per-call with USDC via x402.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/coinank/longshort/kline
- 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-kline-ohlc-data-26b8a0df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TkifXhHC2h5DhG2ZihJit

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-kline-ohlc-data-26b8a0df
```

Example prompt: Show me the last 100 hourly long/short ratio candles for BTCUSDT on Binance — I want to see how market sentiment has shifted recently.

## When to prefer this

Use this endpoint when you need historical long/short ratio kline (candlestick-style) data for crypto derivatives markets, especially for sentiment analysis, backtesting, or charting. Prefer this over raw price feeds when the key insight is the ratio of long vs short positions over time rather than raw price. Suitable for agents doing quantitative or sentiment analysis without needing an API key — just a USDC wallet.

## Known failure modes

- Missing required query params (symbol, type, or exchange not provided) returns an error or empty data array
- Invalid symbol or exchange name returns empty data
- Payment not fulfilled via x402 returns HTTP 402 Payment Required
- End time out of range or unsupported interval returns empty or error response
- Rate limiting or upstream CoinAnk unavailability returns non-zero error code

## 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 on success and a data array containing long/short ratio kline records (candlestick entries), each likely including timestamp, open/high/low/close ratio values, and possibly individual long and short ratio figures for the specified symbol, exchange, interval, and time range.

## 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": {
      "size": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "endTime": {
       "type": "string"
      },
      "exchange": {
       "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-kline-ohlc-data-26b8a0df/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)
