BACK TO CLAUDE SKILLS
◈
compare_two_coins
Claude AIClaude APICompare
INSTALLATION
$python -c "exec(open('compare_two_coins.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Submits both coins' analysis data to Claude in a single prompt and requests a 2-sentence comparative assessment identifying the stronger setup. The `max_tokens=200` ceiling allows a brief but complete comparison including reasoning. The function signature keeps both datasets separate to make the prompt construction legible.
This function is particularly useful in portfolio construction contexts where capital must be allocated between two competing setups. For a more structured comparison, modify the prompt to return a structured verdict (`{ "preferred": "BTC", "reason": "...", "confidence": "high" }`) that downstream code can parse and act on without relying on Claude's natural language framing.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryClaude AI
ComplexityBeginner
LanguagePython 3.10+
TagsClaude API, Compare
[ ASK CLAUDE ]
Ask AI about this skill before installing it.