Skip to main content
Glama
FetchQuote.ts396 B
import { z } from "zod"; import { getCryptoDataLite } from "../services/cmc"; export const FetchQuoteSchema = z.object({ slug: z.string(), }); export type FetchQuoteOptions = z.infer<typeof FetchQuoteSchema>; export const fetchQuote = async (options: FetchQuoteOptions) => { const { slug } = options; const data = await getCryptoDataLite(slug); return data.data.statistics.price; };

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/EmanuelJr/web3-mcp-server'

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