# CoinAnk Long/Short Position Ratio API via claw402 x402 Gateway

> CoinAnk Long/Short Position Ratio 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).

Fetches cryptocurrency long/short position ratio data for a given symbol, exchange, and time interval from CoinAnk via the x402 micropayment-gated API gateway.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/coinank/longshort/position
- 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-position-ratio-api-via-claw402-x402-gateway-9cc41d34
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U8iLMloajI9WfBFcKJqEZ

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-position-ratio-api-via-claw402-x402-gateway-9cc41d34
```

Example prompt: What's the current long/short position ratio for BTC on Binance? Pull the last 10 data points at a 1-hour interval.

## When to prefer this

Use this endpoint when you need real-time or historical long/short position ratio data for crypto derivatives markets, specifically sourced from CoinAnk, and you want to pay per-call with USDC via the x402 protocol without API key registration. Prefer this over direct exchange APIs when you need aggregated cross-exchange sentiment data or when avoiding OAuth/key management overhead.

## Known failure modes

- Missing required query parameters (symbol, exchange, interval) resulting in empty or error response
- Payment failure due to insufficient USDC balance returning HTTP 402
- Invalid symbol or exchange name returning empty data array
- Invalid interval value causing malformed response
- Rate limiting or gateway timeout from upstream CoinAnk API
- Unsupported exchange name causing no data to be returned

## 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 long/short position ratio entries for the queried symbol and exchange, representing the proportion of traders holding long versus short positions over the specified interval.

## 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"
      },
      "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-position-ratio-api-via-claw402-x402-gateway-9cc41d34/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)
