REST Endpoints
Base URL: https://quasdaq.com
All endpoints are served from the Next.js app deployed on Cloudflare Workers.
Public Endpoints
Section titled “Public Endpoints”GET /api/feeds
Section titled “GET /api/feeds”Returns the full asset catalog with feed IDs and keccak256 hashes. See Feed Catalog API for full documentation.
GET /api/price?feedId=BTCUSD
Section titled “GET /api/price?feedId=BTCUSD”Fetches the current price for a given feed from the Stork Oracle.
| Parameter | Type | Description |
|---|---|---|
feedId | string | Asset pair string (e.g. "BTCUSD") |
GET /api/stork?feedId=BTCUSD
Section titled “GET /api/stork?feedId=BTCUSD”Fetches full Stork Oracle signed price data — used for market resolution. Returns the TemporalNumericValueInput struct needed for resolve().
| Parameter | Type | Description |
|---|---|---|
feedId | string | Asset pair string (e.g. "BTCUSD") |
GET /api/stats
Section titled “GET /api/stats”Returns protocol-wide statistics (total markets, volume, etc.).
GET /api/users/x-profiles
Section titled “GET /api/users/x-profiles”Batch lookup of X (Twitter) profiles linked to wallet addresses.
POST /api/users/x-profilesContent-Type: application/json
{ "wallets": ["0x00...abc", "0x00...def"] }GET /api/users/resolve-handle?handle=quasdaq
Section titled “GET /api/users/resolve-handle?handle=quasdaq”Resolve an X handle to a linked wallet address.
| Parameter | Type | Description |
|---|---|---|
handle | string | X username (without @) |
Market Comments
Section titled “Market Comments”GET /api/markets/[id]/comments
Section titled “GET /api/markets/[id]/comments”Returns comments for a specific market.
POST /api/markets/[id]/comments
Section titled “POST /api/markets/[id]/comments”Post a comment on a market. Requires wallet signature authentication.
DELETE /api/markets/[id]/comments/[commentId]
Section titled “DELETE /api/markets/[id]/comments/[commentId]”Delete a comment. Requires wallet signature from the comment author.
POST /api/markets/[id]/comments/[commentId]/like
Section titled “POST /api/markets/[id]/comments/[commentId]/like”Like or unlike a comment. Requires wallet signature authentication.
All public endpoints return Access-Control-Allow-Origin: * headers.