Skip to main content
Glama
heyzgj

CoinMarketCap Universal MCP Server

by heyzgj
global.ts803 B
import { API_ENDPOINTS, CACHE_TTL, DEFAULT_PARAMS } from '../config/constants'; import { GlobalMetricsParams, GlobalMetricsResponse } from '../types/api'; import { BaseApiService } from './base'; /** * Service for accessing global cryptocurrency market metrics */ export class GlobalMetricsService extends BaseApiService { /** * Gets latest global cryptocurrency market metrics * @param params Query parameters * @returns Global metrics data */ async getGlobalMetrics(params: GlobalMetricsParams = {}): Promise<GlobalMetricsResponse> { const actualParams = { convert: params.convert || DEFAULT_PARAMS.CONVERT, ...params }; return this.get<GlobalMetricsResponse>( API_ENDPOINTS.GLOBAL_METRICS, actualParams, CACHE_TTL.SHORT ); } }

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/heyzgj/mcp-feargreedindex'

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