# CoinAnk Long/Short Buy-Sell Ratio

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

Retrieves long/short buy-sell ratio data for crypto assets from CoinAnk via a pay-per-call USDC gateway

## Facts

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

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-buy-sell-ratio-e6283609
```

Example prompt: What's the current long/short buy-sell ratio for BTC on a 1-hour interval? Pull the last 20 data points from CoinAnk.

## When to prefer this

Use this endpoint when you need CoinAnk-sourced long/short buy-sell ratio data for crypto derivatives markets and want to pay per call in USDC without API keys or registration. Prefer this over alternatives when building crypto sentiment or positioning analysis workflows without infrastructure overhead.

## Known failure modes

- Empty data array if no data exists for the specified coin or interval
- Payment failure if wallet has insufficient USDC balance
- Invalid baseCoin or interval value returns error or empty result
- Missing required query params may return malformed or empty response
- Rate limiting or gateway errors from vergex.trade backend

## 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 code and a data array containing long/short buy-sell ratio records for the requested coin and time interval. Data includes positional and volume ratio metrics from CoinAnk's market data feed.

## 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"
      },
      "endTime": {
       "type": "string"
      },
      "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-buy-sell-ratio-e6283609/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)
