Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.hit.com/llms.txt

Use this file to discover all available pages before exploring further.

Most market data is public and can be read without authentication.

Discover Active Markets

Use GET /events to find active events and markets.
curl 'https://hit.com/api/v1/events?eventStatus=ACTIVE&includeVolume=true&sortBy=liquidity&order=DESC&minLiquidity=100&limit=20'
Common filters:
QueryDescription
eventStatusDRAFT, ACTIVE, RESOLVED, or ENDED
termSearch event names, slugs, and descriptions
categoryCategory UUID
endsTODAY, THIS_WEEK, or THIS_MONTH
addedWithinLAST_24H, LAST_7D, or LAST_30D
minLiquidity, maxLiquidityFilter by USD liquidity
includeVolumeInclude tradeVolumeUsd and tradeVolumeUsd24h
sortByid, name, startDate, endDate, tradeVolumeUsd, createdAt, eventStatus, slug, or liquidity
orderASC or DESC
page, limit, totalPagination controls
When sorting by liquidity, include minLiquidity or maxLiquidity.

Discovery Examples

type EventResponse = {
  data: Array<{
    id: string;
    name: string;
    marketsView: Array<{
      id: string;
      name: string;
      tokenId1: string;
      tokenId2: string;
      outcome1: string;
      outcome2: string;
      tickSize: string;
      orderFeeRateBps: number;
    }>;
  }>;
};

const response = await fetch(
  "https://hit.com/api/v1/events?eventStatus=ACTIVE&includeVolume=true&limit=5",
);

if (!response.ok) {
  throw new Error(`${response.status}: ${await response.text()}`);
}

const events = (await response.json()) as EventResponse;
const firstMarket = events.data[0]?.marketsView[0];

console.log(firstMarket?.id, firstMarket?.tokenId1, firstMarket?.tokenId2);

Single Event or Market

RequestDescription
GET /events/{id_or_slug}Event with nested markets
GET /events/{id_or_slug}?includeVolume=trueEvent plus volume fields
GET /events/{id_or_slug}/volumeTotal USD event volume
GET /markets?ids=id1,id2,id3Markets by UUID
GET /markets/{id_or_slug}Single market
GET /markets/{marketId}/volumeMarket volume

Order Book

Read the current order book for an outcome token:
curl 'https://hit.com/api/v1/order-book/book?token_id=TOKEN_ID'
Response:
{
  "market": "market-uuid",
  "asset_id": "TOKEN_ID",
  "timestamp": 1778748000000,
  "bids": [{ "price": "0.62", "size": "25" }],
  "asks": [{ "price": "0.64", "size": "10" }],
  "tick_size": "0.01"
}

Last Trade Price

curl 'https://hit.com/api/v1/order-book/last-trade-price?token_id=TOKEN_ID'
Response:
{
  "price": "0.63",
  "side": "BUY"
}

Price History

curl 'https://hit.com/api/v1/price-history?token=TOKEN_ID&interval=1D&fidelity=5&limit=288'
QueryDescription
tokenOutcome token ID
interval1H, 6H, 1D, 1W, 1M, or ALL
fidelityMinutes between points, from 1 to 1440
page, limit, totalPagination controls
sortBytimestamp or price
orderASC or DESC

Historical Spreads

curl 'https://hit.com/api/v1/historical-data/spreads/MARKET_ID?range=1D&token=1'
QueryDescription
range1H, 6H, 1D, 1W, 1M, ALL, or LATEST
token0 for both outcomes, 1 for outcome 1, 2 for outcome 2

Resolution Status

curl 'https://hit.com/api/v1/resolution/market/MARKET_ID/status'
This endpoint reads current resolution state and is rate limited to 30 requests per minute.