Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Discover and filter available data feeds
const feeds = await sf.discover(); feeds.forEach(f => { console.log(`${f.id} — ${f.price_display} — ${f.category}`); });
const onchain = await sf.discover({ category: 'on-chain' }); // → smart-money-flows, wallet-profiler, smart-money-holdings, dex-trades, whale-alerts const analytics = await sf.discover({ category: 'analytics' }); // → defi-scores, token-intel, stablecoin-flows
on-chain
social
analytics
derivatives
infrastructure
discovery
governance
security
development
cross-chain
// Cheap feeds only (≤ 0.005 STX) const cheap = await sf.discover({ maxPrice: 0.005 }); // Premium feeds (≥ 0.05 STX) const premium = await sf.discover({ minPrice: 0.05 }); // Price range const mid = await sf.discover({ minPrice: 0.005, maxPrice: 0.02 });
const cheapOnchain = await sf.discover({ category: 'on-chain', maxPrice: 0.01, });
const info = await sf.getFeed('smart-money-flows'); if (info) { console.log(info.id); // 'smart-money-flows' console.log(info.price_stx); // 0.08 console.log(info.price_display); // '0.08 STX' console.log(info.category); // 'on-chain' console.log(info.description); // 'Smart money net flows...' console.log(info.update_frequency); // 'every 5 minutes' console.log(info.stats.total_queries); // 142 }
interface FeedInfo { id: string; endpoint: string; price_stx: number; price_display: string; description: string; category: FeedCategory; update_frequency: string; response_format: string; stats: { total_queries: number; avg_response_ms: number; uptime_percent: number; }; }
// Uses cache (fast) const feeds = await sf.discover(); // Force refresh from API const fresh = await sf.discover(undefined, true);