crypto_fear_greed
Retrieve the Crypto Fear & Greed Index to gauge market sentiment for informed cryptocurrency investment decisions.
Instructions
Get the current Crypto Fear & Greed Index
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/modules/crypto.ts:29-34 (handler)The handler implementation for the 'crypto_fear_greed' tool.
server.tool("crypto_fear_greed", "Get the current Crypto Fear & Greed Index", {}, async () => { const data = await safeFetch("https://api.alternative.me/fng/?limit=1"); const fg = data.data[0]; const label = fg.value_classification; return { content: [{ type: "text", text: `**Fear & Greed Index**: ${fg.value}/100 (${label})\nTimestamp: ${new Date(fg.timestamp * 1000).toISOString().split("T")[0]}` }] }; });