Market data API
Market data is public. Use https://wickplay.com as the base URL.
List markets
GET /api/marketscurl https://wickplay.com/api/marketsThe response contains a markets array and a server timestamp.
Read one market
GET /api/markets/{ticker}curl https://wickplay.com/api/markets/BTCSupported tickers are BTC, ETH, SOL, HYPE, HOOD, SPCX, NVDA, AAPL, and GME.
The response includes:
| Field | Meaning |
|---|---|
ticker | Market ticker |
price | Current oracle price as a decimal string |
oracleStatus | live, stale, or unavailable |
oracleObservedAt | Latest oracle observation in Unix milliseconds |
changes | Estimated 60-second, 1-hour, and 24-hour changes |
oracleHistory | Recent one-second oracle points |
quotes.60 | Current 60-second round quote |
quotes.300 | Current 5-minute round quote |
marketOpen | Whether the market schedule accepts new trades |
opensAt | Next or current schedule start in Unix milliseconds |
closesAt | Current 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:
| Field | Meaning |
|---|---|
startsAt | Round start in Unix milliseconds |
locksAt | Last entry time in Unix milliseconds |
endsAt | Round end in Unix milliseconds |
strikePrice | Price used to decide Up or Down |
upProbabilityPpm | Up probability in parts per million |
downProbabilityPpm | Down probability in parts per million |
annualizedVolatilityPpm | Volatility input in parts per million |
sampleCount | Number of observations used by the quote |
unavailableReason | Reason 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}/streamwss://wickplay.com/api/markets/BTC/streamThe 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.