# CoinAnk Aggregated Buy/Sell Order Count API via claw402

> CoinAnk Aggregated Buy/Sell Order Count API via claw402 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).

Returns aggregated buy and sell order counts for crypto markets across exchanges, filterable by coin, interval, product type, and exchange.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/coinank/market-order/agg-buy-sell-count
- 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-aggregated-buy-sell-order-count-api-via-claw402-7d635da8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W8qIX5fcG6ef28MaORaVi

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-aggregated-buy-sell-order-count-api-via-claw402-7d635da8
```

Example prompt: Show me the aggregated buy and sell order counts for BTC on Binance using a 1-hour interval for the last 10 data points — I want to see if buyers or sellers are dominating right now.

## When to prefer this

Use this endpoint when you need aggregated buy vs sell order count data across crypto exchanges for market sentiment or order flow analysis, especially when you want to avoid API key registration and prefer pay-per-use USDC micropayments via x402.

## Known failure modes

- Missing required parameters returns error or empty data array
- Invalid baseCoin or exchange name returns empty data
- Invalid interval value returns error
- Payment not received results in HTTP 402 response
- Rate limiting or quota exceeded returns error
- Invalid productType causes no results

## 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 an array of aggregated buy/sell order count data points for the specified coin, exchange(s), product type, and time 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"
      },
      "endTime": {
       "type": "string"
      },
      "baseCoin": {
       "type": "string"
      },
      "interval": {
       "type": "string"
      },
      "exchanges": {
       "type": "string"
      },
      "productType": {
       "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-aggregated-buy-sell-order-count-api-via-claw402-7d635da8/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)
