# TradeSonar: Current Open Positions for a dYdX Address

> TradeSonar: Current Open Positions for a dYdX Address 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 the current open perpetual positions held by a specified dYdX wallet address, enabling whale tracking and smart-money analysis.

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/whales/:address/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-current-open-positions-for-a-dydx-address-7a4c7834
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-7BY1tLQ7d4ei83DsDXBD

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-current-open-positions-for-a-dydx-address-7a4c7834
```

Example prompt: What open positions is the dYdX whale address dydx1yckl... currently holding — which markets are they long or short on, and what's their exposure?

## When to prefer this

Use this endpoint when you need real-time open position data for a specific dYdX wallet — especially for whale tracking, smart-money copying, or crowding analysis. Prefer this over generic blockchain explorers because it surfaces structured perpetual position data (size, side, entry price) rather than raw transaction history. Combine with /v1/whales/leaderboard to discover top addresses to query.

## Known failure modes

- Invalid or malformed dYdX address returns a 400 or 404 error
- Address with no open positions returns an empty positions array
- Network or upstream dYdX data outage may cause 503 or timeout
- Stale data if dYdX chain has latency; timestamp in response indicates freshness
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Current open positions for an address

## Output

Returns a list of currently open perpetual positions for the given dYdX address, including market identifiers, long/short side, position size, entry price, and likely unrealized PnL. Each response is timestamped to indicate data freshness.

## 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": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "dYdX address, e.g. dydx1yckl... — get top addresses from /v1/whales/leaderboard"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradesonar-current-open-positions-for-a-dydx-address-7a4c7834/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)
