import { z } from "zod";
import { apiGet } from "../client.js";
export const name = "get_daily_snapshot";
export const description =
"Get a full daily snapshot of the entire crypto market in one call. " +
"Returns market health scores, fear & greed index, derivatives data (funding rates, open interest, liquidations), " +
"stablecoin flows, macro indicators (DXY, gold, treasury yields), ETF flows, BTC cycle indicators, " +
"and coin profiles — all in a single response. " +
"This is the most efficient way to get a broad market overview. " +
"Use exchange='all' for unfiltered data or 'hyperliquid'/'binance_spot' to filter coin lists.";
export const schema = z.object({
exchange: z
.enum(["hyperliquid", "binance_spot", "all"])
.optional()
.default("hyperliquid")
.describe("Filter coins by exchange: hyperliquid, binance_spot, or all for unfiltered"),
});
export async function handler(args: z.infer<typeof schema>) {
return apiGet("/api/v1/daily", { exchange: args.exchange });
}