Pushes a notification whenever the current trade action for a watched coin transitions (Buy → Hold, Hold → Sell, etc.).
// The Problem
Signal transitions are the moments that matter most, but they happen silently between checks. This script tracks state and fires an alert the instant a transition occurs.
// The Script
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.
# signal_watcher.py (run every 15 min via cron)
import os, json, requests
API = "https://data.guavy.com/api/v1"
H = {"Authorization": f"Bearer {os.environ['GUAVY_KEY']}"}
WATCHLIST = ["BTC", "ETH", "SOL", "AVAX", "LINK"]
STATE = "signal_state.json"
last = json.load(open(STATE)) if os.path.exists(STATE) else {}
for s in WATCHLIST:
cur = requests.get(
f"{API}/trades/get-current-action/{s}/aggressive",
headers=H
).json()["action"]
if last.get(s) and last[s] != cur:
print(f"{s}: {last[s]} → {cur}")
# notify_slack(...)
last[s] = cur
json.dump(last, open(STATE, "w"))
// Guavy Tools in Play
This script calls 1 endpoint from the Guavy REST API. Every data point maps back to the endpoint it came from.
// Keep Exploring
Same API key, different job-to-be-done.
// Get Started
Grab a free API key, set it as an env var, and run the script. Free sandbox forever.
Disclaimer: Guavy is a data and market intelligence provider, not an investment advisor. The information, signals, and market analysis provided by the Guavy mobile application, API, and related services are for informational purposes only and are not intended as financial advice, investment recommendations, or an endorsement of any particular trading strategy. Cryptocurrency trading is highly volatile, carries significant risk, and may not be suitable for all investors. Past performance is not indicative of future results. Users should consult with a qualified financial professional before making any investment decisions. Guavy makes no guarantee of trading profits or financial returns.
Real-Time Market Intelligence for Apps, Funds & Agents
Location
729 55 Ave SW
Calgary AB T2V 0G4
Canada
Get Your Daily Crypto Market Update
Receive the most important news, market sentiment, and prices for leading instruments. Delivered straight to your inbox.
© 2025 Guavy Inc