Feed Catalog API
The Feed Catalog API returns every supported asset with its exact feedId string and keccak256 hash — the value you must pass to createMarketAndBet on-chain.
Endpoint
Section titled “Endpoint”GET https://quasdaq.com/api/feedsQuery Parameters
Section titled “Query Parameters”| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category: crypto, commodities, forex, stocks, indices |
storkOnly | bool | Set to true to only return feeds with a live Stork Oracle subscription |
Response Format
Section titled “Response Format”{ "feeds": [ { "symbol": "BTC", "name": "Bitcoin", "feedId": "BTCUSD", "feedIdHash": "0x...64-char-hex...", "category": "Crypto", "iconUrl": "https://...", "icon": "₿", "hasStorkFeed": true } ], "count": 65}Field Reference
Section titled “Field Reference”| Field | Description |
|---|---|
feedId | The human-readable asset pair string (e.g. "BTCUSD"). Case-sensitive. |
feedIdHash | keccak256(toUtf8Bytes(feedId)) — pass this as bytes32 to the contract. |
hasStorkFeed | Whether this feed has a live Stork Oracle subscription for resolution. |
category | Display category: Crypto, Equities, Forex, Commodities. |
Examples
Section titled “Examples”All feeds
Section titled “All feeds”curl https://quasdaq.com/api/feedsCrypto feeds with Stork subscription only
Section titled “Crypto feeds with Stork subscription only”curl "https://quasdaq.com/api/feeds?category=crypto&storkOnly=true"Using in JavaScript
Section titled “Using in JavaScript”const res = await fetch("https://quasdaq.com/api/feeds?storkOnly=true");const { feeds } = await res.json();
// Find a specific assetconst btc = feeds.find(f => f.symbol === "BTC");console.log(btc.feedId); // "BTCUSD"console.log(btc.feedIdHash); // "0x..." — use this for createMarketAndBetCaching
Section titled “Caching”Responses include Cache-Control: public, max-age=3600 and Access-Control-Allow-Origin: *. The feed catalog changes infrequently — safe to cache for an hour.