# SolEnrich xStock Basis Trade Analyzer

> SolEnrich xStock Basis Trade Analyzer is a paid API for AI agents from api.solenrich.com, paid per call via x402, $0.015/call, status unknown (last checked 2026-11-19).

Evaluates the basis trade of going long an xStock token on Jupiter and shorting its Phoenix perpetual, returning pricing, funding APR, real round-trip costs, breakeven days, and a TRADE/MARGINAL/NO_TRADE/TOO_THIN signal.

## Facts

- Endpoint: POST https://api.solenrich.com/entrypoints/xstock-basis/invoke?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solenrich-xstock-basis-trade-analyzer-b0710772
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HtmyYBy3fg3B6vT-dA3Nd

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 solenrich-xstock-basis-trade-analyzer-b0710772 -d '<json body>'
```

Example prompt: Check if the NVDA xStock basis trade is worth entering right now at $5000 notional — give me the funding APR, real round-trip costs, breakeven days, and your TRADE/NO_TRADE signal.

## When to prefer this

Use this endpoint when an AI agent needs to evaluate the delta-neutral xStock basis trade (long xStock on Jupiter, short Phoenix perp) for a specific ticker and size before execution. Prefer this over generic DeFi analytics when you specifically need funding APR, real slippage-adjusted round-trip costs, breakeven days, and an actionable TRADE/MARGINAL/NO_TRADE/TOO_THIN signal in a single call. Best suited for pre-trade due diligence on Solana-native tokenized stock carry trades.

## Known failure modes

- Unsupported ticker symbol returns validation error (only NVDA, TSLA, SPY, QQQ, AMZN, META, GOOGL, MSTR, COIN, HOOD, CRCL accepted)
- Size outside $100–$100,000 range returns parameter error
- TOO_THIN signal when Phoenix order book lacks sufficient liquidity at requested size
- Stale price data if on-chain oracles lag during high volatility
- Payment failure via x402 protocol returns 402 before computation begins

## How this service works

Long the xStock (NVDAx, SPYx, QQQx, …) on Jupiter, short its Phoenix perp, collect funding. Returns prices vs the real-share index, funding APR, real round-trip cost at size (Jupiter quotes both ways, Phoenix book walk, fees), breakeven days, after-hours and earnings flags. TRADE / MARGINAL / NO_TRADE / TOO_THIN. NFA.

## Output

Returns structured data including: xStock price relative to the real-share index, current funding APR on the Phoenix perp, real round-trip cost at the requested notional (Jupiter quotes both legs, Phoenix book walk, all fees), estimated breakeven days, after-hours and earnings risk flags, and a categorical trade signal: TRADE, MARGINAL, NO_TRADE, or TOO_THIN.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "json",
    "llm",
    "both"
   ],
   "type": "string",
   "default": "json",
   "description": "Response format: json (structured fields, default), llm (short deterministic briefing), or both (fields plus llm_summary)."
  },
  "symbol": {
   "enum": [
    "NVDA",
    "TSLA",
    "SPY",
    "QQQ",
    "AMZN",
    "META",
    "GOOGL",
    "MSTR",
    "COIN",
    "HOOD",
    "CRCL"
   ],
   "type": "string",
   "description": "Stock ticker; the xStock is <symbol>x, the Phoenix perp is <symbol>"
  },
  "size_usd": {
   "type": "number",
   "default": 1000,
   "maximum": 100000,
   "minimum": 100,
   "description": "Notional per leg in USD"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solenrich-xstock-basis-trade-analyzer-b0710772/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.solenrich.com](https://www.zero.xyz/host/api.solenrich.com/llms.txt)
