Skip to main content
Glama

fearAndGreedHistorical

Access historical Crypto Fear and Greed Index data to analyze market sentiment trends over time. Specify start and limit parameters to retrieve precise historical values for informed decision-making.

Instructions

Returns historical CMC Crypto Fear and Greed Index values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
startNo

Implementation Reference

  • index.js:544-556 (registration)
    Registration of the 'fearAndGreedHistorical' tool, including description, input schema using Zod, and inline asynchronous handler function that makes an API request to CoinMarketCap's fear-and-greed historical endpoint.
    server.tool("fearAndGreedHistorical", "Returns historical CMC Crypto Fear and Greed Index values.", { start: z.number().min(1).optional(), limit: z.number().min(1).max(500).optional() }, async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/fear-and-greed/historical', params) return formatResponse(data) }) } )
  • The handler function for 'fearAndGreedHistorical' tool. It wraps the API call to '/v3/fear-and-greed/historical' using shared utilities handleEndpoint, makeApiRequest, and formatResponse.
    async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/fear-and-greed/historical', params) return formatResponse(data) }) }
  • Input schema for 'fearAndGreedHistorical' tool using Zod validation: optional 'start' (min 1) and 'limit' (min 1, max 500).
    { start: z.number().min(1).optional(), limit: z.number().min(1).max(500).optional() },

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/shinzo-labs/coinmarketcap-mcp'

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