import { z } from "zod";
import { apiGet } from "../client.js";
export const name = "get_fear_greed";
export const description =
"Get the Crypto Fear & Greed Index — a multi-source averaged sentiment score from 0 (Extreme Fear) " +
"to 100 (Extreme Greed). Classifications: Extreme Fear (0-25), Fear (26-40), Neutral (41-60), " +
"Greed (61-75), Extreme Greed (76-100). Includes per-source breakdown. " +
"Extreme Fear often signals buying opportunities; Extreme Greed often signals overheated markets.";
export const schema = z.object({});
export async function handler(_args: z.infer<typeof schema>) {
return apiGet("/api/v1/sentiment/fear-greed");
}