# x402-defi-intel Long/Short Intel

> x402-defi-intel Long/Short Intel is a paid API for AI agents from cryptodefidataintel-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Returns crowd vs. smart-money long/short positioning ratios for a crypto asset, with a divergence signal and contrarian insight.

## Facts

- Endpoint: GET https://cryptodefidataintel-production.up.railway.app/api/longshort-intel
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-defi-intel-long-short-intelligence-580a719f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xN62LWGYZw76SAZLMIfOD

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 x402-defi-intel-long-short-intelligence-580a719f
```

Example prompt: What's the current long/short positioning for BTC — are the crowd and smart money aligned or is there a contrarian divergence signal I should know about?

## When to prefer this

Use this endpoint when you need to detect divergence between retail crowd positioning and smart money (top trader) positioning for a specific crypto asset, particularly to identify contrarian setups. Prefer this over generic price feeds or open interest endpoints when the goal is sentiment divergence analysis rather than raw volume or price data.

## Known failure modes

- Missing or unsupported asset symbol returns an error or empty data
- Rate limiting or payment failure (x402) blocks the call
- Upstream exchange API unavailability causes stale or missing data
- Invalid period parameter may result in a 400 or fallback to default period
- Low liquidity assets may return low confidence scores or no smart money data

## How this service works

Crypto-agent toolkit: cross-chain DeFi intelligence + execution helpers + retrieval for agents. 16 endpoints: funding, open interest, long/short, token-safety, yield, prices, gas, tx-simulate, approval-check, bridge-quote, governance-search, lending, liquidations, protocol-search, swap-quote, token-resolve. Pay-per-call via x402.

## Output

Returns a JSON object with long/short percentages for both crowd and smart money, a boolean divergence flag, a signal label (e.g. 'divergence_crowd_long_smart_short'), a plain-English insight explaining the setup, the data sources used, and a confidence score between 0 and 1.

## 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",
     "required": [],
     "properties": {
      "asset": {
       "type": "string"
      },
      "period": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "asset": "BTC",
   "crowd": {
    "longPct": 62,
    "shortPct": 38
   },
   "divergence": true,
   "smartMoney": {
    "longPct": 45,
    "shortPct": 55
   }
  },
  "signal": "divergence_crowd_long_smart_short",
  "insight": "Crowd net long while top traders net short — contrarian-prone.",
  "sources": [
   "binance"
  ],
  "confidence": 0.7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-defi-intel-long-short-intelligence-580a719f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptodefidataintel-production.up.railway.app](https://www.zero.xyz/host/cryptodefidataintel-production.up.railway.app/llms.txt)
