Speculation Watch
Ranks watchlist coins by speculation score to surface the most hype-driven names of the week.
// The Problem
What this recipe solves
Hype-driven coins move fast and crash faster. This script ranks your watchlist by Guavy's speculation score so you know which names are narrative-heavy before you size a position.
// The Script
Copy, run, ship
Drop this script into your project and run it locally or on a
cron. Set GUAVY_KEY in your
environment, swap the symbols, and go.
# speculation_watch.py
import os, requests
API = "https://guavy.com/api/v1"
H = {"Authorization": f"Bearer {os.environ['GUAVY_KEY']}"}
WATCHLIST = ["BTC", "ETH", "SOL", "AVAX", "LINK",
"DOGE", "XRP", "ADA", "DOT", "MATIC"]
rows = []
for s in WATCHLIST:
a = requests.get(
f"{API}/newsroom/get-instrument-analysis/{s}",
headers=H
).json()
rows.append((s, a.get("speculation_score", 0), a.get("dominant_tone", "")))
rows.sort(key=lambda r: r[1], reverse=True)
print(f"{'Symbol':<8} {'Speculation':>12} {'Tone'}")
for sym, score, tone in rows:
print(f"{sym:<8} {score:>12.2f} {tone}")
// Guavy Tools in Play
1 tool, one script
This script calls 1 endpoint from the Guavy REST API. Every data point maps back to the endpoint it came from.
// Keep Exploring
Related recipes
Same API key, different job-to-be-done.
// Get started
Run this recipe in under 2 minutes
Grab a free API key, set it as an env var, and run the script. Free sandbox forever.