New buy listing
Lists each brand-new buy (days_in_trade = 0) on the crypto trade simulator's aggressive strategy, ready to post to Slack.
// The Problem
What this recipe solves
The newest buys are easy to lose in the simulator's list of open trades. This script keeps only the ones with zero days in the trade, so each run shows just what's new. Trade signals are crypto only.
// 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.
# new_buys.py (run hourly via cron)
import os, requests
API = "https://guavy.com/api/v1"
H = {"Authorization": f"Bearer {os.environ['GUAVY_KEY']}"}
buys = requests.get(
f"{API}/trades/get-recent-buys",
headers=H,
params={"strategy": "aggressive", "limit": 20}
).json()["trades"]
fresh = [b for b in buys if b["days_in_trade"] == 0]
for b in fresh:
print(f"NEW BUY · {b['symbol']} @ {b['start_price']} ({b['start_date']})")
# notify_slack(...)
// 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.
// Sample Output
What the script prints
Output from a real run of this script.
NEW BUY · USDC @ 0.9997751146759658 (2026-07-03) NEW BUY · KAITO @ 0.5752356865698173 (2026-07-03) NEW BUY · ACX @ 0.04246936438285533 (2026-07-02) NEW BUY · G @ 0.003303781094196449 (2026-07-02)
// Keep Exploring
Related recipes
Same API key, a different job.
// Get started
Run this recipe on the free plan
Grab a free API key, set it as an env var, and run the script. Free sandbox forever.