export const name = "crypto_market_briefing";
export const description =
"Generate a structured crypto market briefing. This prompt guides you to call " +
"get_daily_snapshot and get_market_health, then synthesize the data into a " +
"comprehensive market report with sections for regime assessment, derivatives positioning, " +
"sentiment, macro backdrop, and actionable takeaways.";
export const arguments_ = [
{
name: "focus",
description:
"Optional focus area for the briefing: 'general' for broad overview, " +
"'derivatives' for funding/OI/liquidation focus, 'sentiment' for fear-greed/macro focus, " +
"or 'btc-cycle' for cycle indicator focus. Defaults to general.",
required: false,
},
];
export function getPromptMessages(args: Record<string, string>) {
const focus = args.focus ?? "general";
let focusInstructions = "";
if (focus === "derivatives") {
focusInstructions =
"Pay special attention to funding rates, open interest changes, liquidation volumes, " +
"and long/short ratios. Highlight any extreme readings or divergences.";
} else if (focus === "sentiment") {
focusInstructions =
"Focus on Fear & Greed Index readings, stablecoin flows, macro indicators " +
"(DXY, gold, yields), and ETF flows. Assess overall market sentiment.";
} else if (focus === "btc-cycle") {
focusInstructions =
"Focus on BTC cycle indicators (MVRV, NUPL, Puell, Pi Cycle, etc.) and their " +
"current zone classifications. Assess where we are in the cycle.";
} else {
focusInstructions =
"Provide a balanced overview covering all major areas: health scores, derivatives, " +
"sentiment, macro, and cycle positioning.";
}
return [
{
role: "user" as const,
content: {
type: "text" as const,
text:
"Please generate a crypto market briefing. Follow these steps:\n\n" +
"1. Call get_daily_snapshot to get the full market data\n" +
"2. Call get_market_health to get the current market regime\n\n" +
"Then synthesize the data into a structured briefing with these sections:\n\n" +
"## Market Regime\n" +
"Current health scores, sentiment, and market state classification.\n\n" +
"## Derivatives Positioning\n" +
"Funding rates, open interest trends, liquidation volumes, and what they signal.\n\n" +
"## Sentiment & Flows\n" +
"Fear & Greed reading, stablecoin flows, ETF flows.\n\n" +
"## Macro Backdrop\n" +
"DXY, gold, treasury yields and their crypto implications.\n\n" +
"## Key Takeaways\n" +
"3-5 actionable bullet points summarizing the market state.\n\n" +
`Focus: ${focusInstructions}\n\n` +
"Use specific numbers from the data. Flag any extreme readings or notable divergences.",
},
},
];
}