# OKX Long/Short Ratio by Coin

> OKX Long/Short Ratio by Coin is a paid API for AI agents from clonecho.builda.company, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns the live trader long/short account ratio per cryptocurrency coin from OKX, indicating crowd sentiment (>1 means net long positions dominate).

## Facts

- Endpoint: POST https://clonecho.builda.company/x402/long-short
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/okx-long-short-ratio-by-coin-0416a7c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y5A71K6vUx0_GNeK6lkS3

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 okx-long-short-ratio-by-coin-0416a7c6 -d '<json body>'
```

Example prompt: What's the current long/short ratio across coins on OKX right now — I want to know if traders are net long or short and which coins have the most extreme sentiment?

## When to prefer this

Use this endpoint when you need real-time crowd sentiment data from OKX specifically, expressed as trader long/short account ratios per coin. Prefer this over generic sentiment APIs when you need exchange-level positioning data rather than social sentiment, and when OKX is the exchange of interest for derivatives or perpetuals positioning.

## Known failure modes

- OKX upstream API unavailable — may return 5xx or empty data
- Stale data if OKX feed is delayed
- Payment not received — x402 payment required error
- No coin filtering available since endpoint takes no parameters — returns all coins

## How this service works

Trader long/short account ratio per coin (OKX) — crowd sentiment (>1 = net long). Live. Returns JSON.

## Output

A JSON object containing live long/short account ratios per coin from OKX, where each entry includes the coin symbol and its ratio value (values greater than 1 indicate net long sentiment, less than 1 indicates net short).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/okx-long-short-ratio-by-coin-0416a7c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clonecho.builda.company](https://www.zero.xyz/host/clonecho.builda.company/llms.txt)
