Skip to content

← hyperliquid-hip4

GET/api/v1/hyperliquid/hip4/by-outcome

HIP-4 single-outcome drill-down - per-side probability + volume time series

Per-outcome drill-down (Pro). Returns market metadata and the full time series of each side (Yes/No) : implied probability (= ``last_price``), notional volume USD, and trade count over every available snapshot. The aggregate ecosystem view (``/dashboard`` + ``/history``) stays Free, but acting on a specific market - comparing per-side probability flows, timing entries - requires Pro.

Authentication

This endpoint requires the X-API-Key header or a valid Clerk JWT. Accepted schemes: HTTPBearer.

See Authentication for details.

Query parameters

NameTypeRequiredDescription
outcome_idintegerHIP-4 outcome_id (from /dashboard).

Responses

StatusDescriptionSchema
200Successful ResponseHip4Response
422Validation ErrorHTTPValidationError

See the standard error codes documented in the Error codes.

Code samples

Three ready-to-paste implementations. Replace $TRINITY_API_KEY with your API key (generated from the dashboard under Profile → API keys).

cURL

curl -X GET \
  'https://api.trinityinsights.io/api/v1/hyperliquid/hip4/by-outcome?outcome_id=1' \
  -H 'X-API-Key: $TRINITY_API_KEY'

Python

import os
import requests

BASE = "https://api.trinityinsights.io"
headers = {
    "X-API-Key": os.environ["TRINITY_API_KEY"],
}
params = {
    "outcome_id": "1",  # required
}

response = requests.get(f"{BASE}/api/v1/hyperliquid/hip4/by-outcome", headers=headers, params=params, timeout=10)
response.raise_for_status()
data = response.json()

JavaScript

const apiKey = process.env.TRINITY_API_KEY;

const response = await fetch(
  "https://api.trinityinsights.io/api/v1/hyperliquid/hip4/by-outcome?outcome_id=1",
  {
    method: "GET",
    headers: {
      "X-API-Key": apiKey,
    },
  },
);

if (!response.ok) {
  throw new Error(`HTTP ${response.status}`);
}
const data = await response.json();

Institutional disclaimer

Trinity Insights is an educational and analytical tool. Values returned by this endpoint do not constitute investment advice. Trinity Insights is not a Crypto-Asset Service Provider (CASP) registered under MiCA Regulation (EU) 2023/1114. See the full disclaimer.