Skip to main content
In HIP-4, a prediction market is a probability instrument priced between 0 and 1, where the price reflects the market’s implied probability that a given outcome will occur. Each market has two tradeable sides - for example, “Yes” and “No” - and each side is a separate token. If you buy “Yes” at 0.65, you’re paying 0.65 USDC per share and receiving a payout of 1 USDC per share if the outcome resolves in your favor. The SDK classifies every live outcome into one of four typed market structures, each carrying pre-computed side identifiers and metadata that makes it straightforward to display, filter, and trade.

Market types

HIP-4 markets fall into four types, each with its own structure and set of fields.
(aka priceBinary)Recurring price binary markets are auto-generated on a schedule and ask whether an asset’s price will exceed a target by a given expiry. They always use “Yes” / “No” sides.
e.g. “Will BTC finish above $82,000 at 23:59 11/05/2026”
Distinguishing fields: underlying, targetPrice, expiry, period
Fetch recurring markets specifically:

Market type summary

Data hierarchy

HIP-4 structures data in three layers: events, markets, and outcomes.
A PredictionEvent groups one or more PredictionMarket objects. For question-based events (multi-outcome), each named outcome becomes its own PredictionMarket. For standalone outcomes, the event contains a single market. PredictionOutcome represents one side. It carries the side name, the tokenId (the side coin like #5160), and the current price as a decimal string between “0” and “1”.

Event IDs

Event IDs follow two formats depending on how the market was created:
  • q{n} - a question-based event grouping multiple named outcomes (e.g. "q42")
  • o{n} - a standalone outcome that forms its own single-market event (e.g. "o516")
Recurring markets and labelled binary markets are typically standalone and use the o{n} format. Price bucket markets are always question-based and use q{n}.

Market status

Every PredictionEvent has a status field that reflects its current lifecycle state.