Quick Markets
15-minute auto-expiring price prediction markets for BTC, ETH, and other assets.
Get Active Quick Market
Returns the currently active quick market for an asset.
GET /api/v1/quick-markets/{asset}Path Parameters
asset
string
Asset symbol (e.g., BTC, ETH)
Response (Active Market)
{
"active": true,
"asset": "BTC",
"quickMarket": {
"id": 42,
"marketId": "0x...",
"asset": "BTC",
"intervalMinutes": 15,
"startPrice": 9750000000000,
"startTime": 1735689000,
"endTime": 1735689900,
"resolved": false,
"priceSource": "pyth",
"createdAt": 1735689000
},
"bestAskPrice": 450000
}active
bool
Whether there is a currently active market
quickMarket.marketId
string
Market ID for placing orders
quickMarket.startPrice
int64
Strike price at market creation (price uses 6 decimals for USDC, but asset prices may use 8 decimals from Pyth)
quickMarket.startTime
int64
Unix timestamp when the market started
quickMarket.endTime
int64
Unix timestamp when the market expires
quickMarket.resolved
bool
Whether the market has been resolved
quickMarket.priceSource
string
Price oracle source (e.g., "pyth")
bestAskPrice
uint64
Best YES ask from the live orderbook (6 decimals). 450000 = $0.45
Response (No Active Market)
Example
Get Quick Market History
Returns recent quick markets for an asset.
Path Parameters
asset
string
Asset symbol (e.g., BTC)
Response
Returns up to 100 most recent quick markets.
endPrice
int64
Price at expiration (null if not yet resolved)
outcome
int
0 = YES (price went up), 1 = NO (price went down). Null if not resolved.
Example
Get Current Price
Returns the current price for an asset from the Pyth oracle.
Path Parameters
asset
string
Asset symbol (e.g., BTC)
Response
price
int64
Raw price from oracle
priceUSD
float64
Price in USD
timestamp
int64
Unix timestamp
source
string
Oracle source URL
Example
Get Price History
Returns historical price data for chart rendering.
Path Parameters
asset
string
Asset symbol (e.g., BTC)
Response
Returns 20 minutes of price history.
Example
Price Stream (SSE)
Server-Sent Events stream of real-time price updates.
Path Parameters
asset
string
Asset symbol (e.g., BTC)
Response Format
The response is a text/event-stream with JSON data events:
asset
string
Asset symbol
price
int64
Raw price
priceUSD
float64
Price in USD
timestamp
int64
Unix timestamp in milliseconds
source
string
Price source ("pyth", "coinbase", "coingecko")
An initial price is sent immediately upon connection. Subsequent updates stream as new prices arrive from the oracle.
Examples
Last updated
