# TradeSonar dYdX Whale Positions API

> TradeSonar dYdX Whale Positions 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).

Retrieves current open positions for a specific dYdX on-chain address, including side, size, entry price, mark price, and unrealized PnL.

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/whales/%7Baddress%7D/positions?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-dydx-whale-positions-api-555fbeda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6iWMt9ZgmZxHk-mURO5hN

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-dydx-whale-positions-api-555fbeda
```

Example prompt: Pull up the current open positions for dYdX address dydx1abc123xyz on TradeSonar — I want to see what markets they're in, whether they're long or short, their position sizes, and unrealized PnL.

## When to prefer this

Use this endpoint when you need to inspect the current open positions of a specific known dYdX wallet address — especially for smart money tracking, copytrading research, or whale monitoring workflows. Prefer this over generic market endpoints when you have a target address and want position-level detail (size, side, PnL, entry price) rather than aggregate market signals.

## Known failure modes

- Invalid or malformed dYdX address returns a 400 or 404 error
- Address with no open positions returns an empty positions array
- Stale data due to replica lag may cause slightly outdated position values
- Rate limiting or payment failure (x402) if USDC balance is insufficient
- Address that has never traded on dYdX may return empty or not-found response

## 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 current open positions for the specified dYdX address, each including the market ticker, side (long/short), position size in USD, entry price, current mark price, unrealized PnL in USD, and the timestamp the position was opened. The response is stamped with a data_as_of field indicating freshness via block height and replica lag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "positions": [
    {
     "side": "...",
     "ticker": "...",
     "sizeUsd": "...",
     "openedAt": "...",
     "markPrice": "...",
     "entryPrice": "...",
     "unrealizedPnlUsd": "..."
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradesonar-dydx-whale-positions-api-555fbeda/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)
