# TradeSonar Large Trades (Whale Fills) API

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

Returns large on-chain trades (whale-sized fills) for a given dYdX market, filterable by lookback window and minimum notional size.

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/markets/%7Bticker%7D/large-trades?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tradesonar-large-trades-whale-fills-api-75d8f6b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wFLKFFwK5okrTmCUp1UzT

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-large-trades-whale-fills-api-75d8f6b8
```

Example prompt: Pull the last 60 minutes of whale trades on BTC-USD from TradeSonar — show me fills above $100,000 notional and flag any liquidations.

## When to prefer this

Use this endpoint when you need raw, timestamped large-order flow data from dYdX on-chain fills — ideal for detecting whale accumulation, forced liquidations, or directional conviction from big players. Prefer this over funding or crowding endpoints when you want individual trade-level evidence rather than aggregated ratios. Best when you need to answer 'who is moving size right now and which way?'

## Known failure modes

- Invalid ticker (not in /v1/markets list) returns a 400 or 404 error
- lookback_min outside 1–1440 range returns a validation error
- limit outside 1–500 range returns a validation error
- Payment not included or insufficient USDC triggers a 402 Payment Required response
- No trades matching the min_notional threshold returns an empty trades array
- Network or replica lag may cause stale data, flagged via data_as_of timestamp

## How this service works

TradeSonar: dYdX on-chain smart-money, funding and crowding signals. Every response is stamped with data_as_of freshness (block height + replica lag).

## Output

Returns a list of large trade fills for the requested dYdX market, each containing the direction (buy/sell side), timestamp, execution price, size in USD, and a boolean indicating whether the fill was a forced liquidation. The response is stamped with a data_as_of field reflecting block height and replica lag for freshness verification.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "ticker"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "description": "Market ticker, e.g. BTC-USD (NOT BTC-USDT). See /v1/markets for valid tickers."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 100,
       "maximum": 500,
       "minimum": 1
      },
      "lookback_min": {
       "type": "integer",
       "default": 60,
       "maximum": 1440,
       "minimum": 1,
       "description": "Lookback window in minutes"
      },
      "min_notional": {
       "type": "number",
       "default": 50000,
       "description": "Minimum trade notional in USD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "trades": [
    {
     "side": "...",
     "time": "...",
     "price": "...",
     "sizeUsd": "...",
     "isLiquidation": false
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradesonar-large-trades-whale-fills-api-75d8f6b8/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)
