Skip to content
Logo

Market data API

Market data is public. Use https://wickplay.com as the base URL.

List markets

GET /api/markets
curl https://wickplay.com/api/markets

The response contains a markets array and a server timestamp.

Read one market

GET /api/markets/{ticker}
curl https://wickplay.com/api/markets/BTC

Supported tickers are BTC, ETH, SOL, HYPE, HOOD, SPCX, NVDA, AAPL, and GME.

The response includes:

FieldMeaning
tickerMarket ticker
priceCurrent oracle price as a decimal string
oracleStatuslive, stale, or unavailable
oracleObservedAtLatest oracle observation in Unix milliseconds
changesEstimated 60-second, 1-hour, and 24-hour changes
oracleHistoryRecent one-second oracle points
quotes.60Current 60-second round quote
quotes.300Current 5-minute round quote
marketOpenWhether the market schedule accepts new trades
opensAtNext or current schedule start in Unix milliseconds
closesAtCurrent schedule end in Unix milliseconds

The list response includes opensAt and closesAt. A single-market response also includes these schedule fields.

Quote fields

Each value under quotes.60 and quotes.300 includes:

FieldMeaning
startsAtRound start in Unix milliseconds
locksAtLast entry time in Unix milliseconds
endsAtRound end in Unix milliseconds
strikePricePrice used to decide Up or Down
upProbabilityPpmUp probability in parts per million
downProbabilityPpmDown probability in parts per million
annualizedVolatilityPpmVolatility input in parts per million
sampleCountNumber of observations used by the quote
unavailableReasonReason the quote cannot accept a trade, or null

Do not submit a trade when unavailableReason is set or a required quote field is null.

Stream one market

WS /api/markets/{ticker}/stream
wss://wickplay.com/api/markets/BTC/stream

The server sends a complete market snapshot when the socket opens and after each update. Replace the previous snapshot with the new message. Do not merge quote fields from different messages.