# SperaxOS Long/Short Ratio API

> SperaxOS Long/Short Ratio API is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Returns the long/short ratio for crypto assets, indicating market sentiment and directional positioning in DeFi markets.

## Facts

- Endpoint: GET https://chat.sperax.io/api/x402/intel/long-short-ratio?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-long-short-ratio-api-bbb7344e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_73fKcRVVkR9jc3WsPtRO8

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 speraxos-long-short-ratio-api-bbb7344e
```

Example prompt: What's the current long/short ratio for ETH on SperaxOS — are traders mostly bullish or bearish right now?

## When to prefer this

Choose this endpoint when you need real-time DeFi market sentiment derived from trader positioning (long vs short ratios) for crypto assets, especially in automated trading agents or sentiment dashboards. Prefer this over generic market data APIs when you want AI-curated DeFi intelligence accessible via micropayment without API key management.

## Known failure modes

- Unsupported or unrecognized asset symbol returns an error or empty result
- x402 payment failure if USDC balance is insufficient or Base network is congested
- Stale data if upstream futures data provider is delayed
- Rate limiting or payment rejection if too many rapid requests are made

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns the current long/short ratio for the requested crypto asset, showing the proportion of traders holding long versus short positions, which serves as a market sentiment and directional bias indicator.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-long-short-ratio-api-bbb7344e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
