Want to know when Bitcoin hits a certain price? Build your own alert system. No need for a centralized alert service.
How It Works
Your system polls the CryptoBoss price API at intervals, compares current prices to your thresholds, and sends notifications when triggered.
Minimal Python Example
import requests, time
API_KEY = "your_key"
ALERTS = {"bitcoin": 65000, "ethereum": 3500}
while True:
r = requests.get(
"https://cryptodata-api.datachain.workers.dev/api/price?coins=bitcoin,ethereum",
headers={"x-api-key": API_KEY}
)
prices = r.json()
for coin, target in ALERTS.items():
if prices[coin]["usd"] >= target:
print(f"🔔 {coin} hit ${target}!")
time.sleep(60)
Better: Use CryptoBoss Alerts
The CryptoBoss alert API handles monitoring server-side. Just create an alert and get notified via webhook.