TradePortfolio
DocsDashboard
Use with AI

HIP-4 Analytics API Reference

Dev

GET /hip4-analytics/dashboard


HIP-4 prediction market dashboard data from cached analytics snapshots. The default full response is unchanged. Use view=charts or view=summary for selective chart reads, and view=markets for bounded market statistics without per-row mechanics.

Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

Parameters

Query parameters

NameTypeRequiredDescription
rangestring–4h, 1d, 7d, 30d, or all. Defaults to 1d. Legacy period remains supported as a compatibility alias.
viewstring–full (default), charts, summary, or markets. Small views read only the required sections.
outcome_idsstring–For view=markets: up to 200 comma-separated outcome IDs. Omit for indexed pagination.
offsetinteger–Starting index for a market page. Defaults to 0.
limitinteger–Market page size, from 1 to 200. Defaults to 100.
venuestring–Restrict every metric and breakdown to one stored HIP-4 venue: out for Outcome.xyz or skew for Skew Markets. Omit for all deployers.

Example request

bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip4-analytics/dashboard?range=1d&venue=skew"

Example response

json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "venue": "skew",
  "computed_through_ms": 1788221100000,
  "summary": {
    "volume": 82000000,
    "fill_count": 50200,
    "orderbook_fill_count": 49600,
    "trade_count": 24800,
    "protocol_trade_count": 36200,
    "unique_traders": 2840,
    "total_fees": 41000
  },
  "timeseries": [
    { "date": "2026-09-01T00:00:00", "volume": 82000000, "trade_count": 24800 }
  ],
  "settlement_total": {
    "volume": 1800000,
    "fill_count": 920,
    "trade_count": 0,
    "unique_traders": 710,
    "total_fees": 0
  },
  "settlement_timeseries": []
}

Errors

  • 400 — Invalid venue, view, market IDs, offset, or limit.
  • 503 — A small view has no warmed snapshot available yet. Retry shortly.

For authentication errors (401) and rate limit responses (429), see Errors.

Related