Skip to content

internet-court/internet-court-skill / vendored/sendaifun/birdeye

birdeye

Verified

Complete Birdeye API integration for real-time DeFi data across Solana and 15 other chains. Use for token prices, OHLCV charts, market discovery, on-chain trader intelligence, holder analysis, wallet portfolio & P&L, and WebSocket streams for live prices and whale alerts.

examples/market-data/trending-tokens.ts

View on GitHub
/**
 * Example: Find trending tokens on Solana by rank.
 *
 * sort_by valid values: 'rank' | 'volumeUSD' | 'liquidity' (for the API param).
 * sort_by and sort_type are both required.
 * Response items expose volume as `volume24hUSD` — NOT `volumeUSD`.
 *
 * Run: BIRDEYE_API_KEY=xxx npx ts-node examples/market-data/trending-tokens.ts
 */

import BirdeyeClient from '../../templates/birdeye-client';

async function run() {
    const client = BirdeyeClient.create('solana');

    console.log('Fetching top trending tokens on Solana...');

    try {
        const tokens = await client.market.getTrending('rank', 'asc', 10);

        console.log(`\nTop 10 Trending Tokens (by rank):`);
        tokens.forEach((token, index: number) => {
            console.log(`${index + 1}. ${token.symbol || 'Unknown'} (${token.address})`);
            console.log(`   Price:     $${token.price}`);
            console.log(`   Volume24h: $${token.volume24hUSD?.toLocaleString()}`);
            console.log(`   Liquidity: $${token.liquidity?.toLocaleString()}`);
            console.log('---');
        });
    } catch (e: any) {
        console.error('Error:', e.message);
    }
}

run();
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 323kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 323kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 323kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 323kUpdated Claude CodeCodexVerifiedInstall