# TradeSonar Whale Flow Events

> TradeSonar Whale Flow Events is a paid API for AI agents from api.tradesonar.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns a time-windowed stream of large on-chain dYdX order flow events attributed to smart-money/whale addresses, with classification and directional metadata.

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/whales/flow?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tradesonar-whale-flow-events-3a70de0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NOT7JKblP416nNI4Dk66e

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 tradesonar-whale-flow-events-3a70de0d
```

Example prompt: Pull the last 60 minutes of whale flow events from TradeSonar on dYdX — give me up to 200 events so I can see which direction smart money is trading and which addresses are moving big size.

## When to prefer this

Choose this endpoint when you need raw, event-level whale order flow from dYdX on-chain data with address attribution and classification — as opposed to aggregated long/short ratios (use the crowding endpoint), funding data (use the funding endpoint), or candlestick OHLCV data. Best when you need to identify specific smart-money wallets, their trade direction, and exact USD sizing within a recent time window.

## Known failure modes

- Invalid limit value outside 1-500 range returns validation error
- since_min exceeding 1440 returns parameter error
- Payment not included or insufficient USDC returns 402 Payment Required
- Replica lag or indexer downtime may cause stale data_as_of timestamps
- Empty events array returned if no whale-sized flow occurred in the requested window

## How this service works

Smart-money flow (open/close/increase/decrease/flip events)

## Output

A JSON array of flow events, each containing the wallet address, ticker, trade side (buy/sell), action type, USD size in and out, classification label (e.g. whale/smart-money tier), and timestamp — plus a data_as_of freshness stamp with block height and replica lag.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "description": "Max flow events to return, 1-500"
      },
      "since_min": {
       "type": "integer",
       "default": 60,
       "maximum": 1440,
       "minimum": 1,
       "description": "Lookback window in minutes"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "events": [
    {
     "side": "...",
     "time": "...",
     "toUsd": "...",
     "action": "...",
     "ticker": "...",
     "address": "...",
     "fromUsd": "...",
     "classification": "..."
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradesonar-whale-flow-events-3a70de0d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tradesonar.io](https://www.zero.xyz/host/api.tradesonar.io/llms.txt)
