Skip to main content
Glama

get_token_prices

Retrieve comprehensive market data including prices, market cap, trading volume, and price changes for specific cryptocurrency tokens on the KAIA blockchain.

Instructions

Get comprehensive market data including prices, market capitalization, 24h trading volume, and 24h price changes for specific token symbols (e.g., 'KAIA', 'BTC', 'ETH', 'BORA')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYesArray of token symbols to get comprehensive market data for (e.g., ['KAIA', 'BTC', 'ETH'])

Implementation Reference

  • The `getTokenPrices` function, which fetches all available prices and filters them based on the provided list of symbols.
    export const getTokenPrices = async (symbols: string[]) => {
        try {
            const allPricesResult = await getAllPrices();
            
            if (!allPricesResult.success) {
                return allPricesResult;
            }
    
            const filteredPrices = (allPricesResult.prices || []).filter((price: any) => 
                symbols.includes(price.symbol)
            );
    
            return {
                success: true,
                prices: filteredPrices,
                count: filteredPrices.length,
                requestedSymbols: symbols,
                foundSymbols: filteredPrices.map((price: any) => price.symbol)
            };
        } catch (error: any) {
            console.error('Error fetching token prices:', error);
            return {
                success: false,
                error: error.message || 'Failed to fetch token prices'
            };
        }
    };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tamago-labs/kaia-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server