Skip to main content
Glama

Asset Price MCP Server

types.ts819 B
import { z } from "zod"; export const AssetSymbolSchema = z.object({ name: z.string(), symbol: z.string(), }); export const AssetPriceSchema = z.object({ name: z.string(), price: z.number(), symbol: z.string(), updatedAt: z.string(), updatedAtReadable: z.string().optional(), currency: z.string().default('USD'), marketCap: z.number().optional(), volume24h: z.number().optional(), change24h: z.number().optional(), }); export type AssetSymbol = z.infer<typeof AssetSymbolSchema>; export type AssetPrice = z.infer<typeof AssetPriceSchema>; export interface PriceService { getName(): string; getSupportedAssets(): Promise<AssetSymbol[]>; getPrice(symbol: string, currency?: string): Promise<AssetPrice | null>; getPrices(symbols: string[], currency?: string): Promise<AssetPrice[]>; }

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/mk965/asset-price-mcp'

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