Skip to content

Repository files navigation

btc-tracker

Simple BTC tracker for Jon/Suderbot.

What it does

  • Samples BTC price from CoinGecko (BTC/USD + BTC/CAD) and derives USD/CAD.
  • Stores append-only JSONL data in ~/Workspace/state/btc-prices.jsonl.
  • Renders a daily graph PNG where each day is represented by the 5pm (17:00 MST) sample.
  • Sends Telegram updates at 5am + 5pm.
  • Keeps messaging low-noise while collecting richer data hourly.

Files

  • btc_sample.sh — fetch one price point, append to JSONL.
  • btc_plot_daily.sh — build btc-daily.tsv from 5pm samples and generate PNG.
  • btc_overnight_message.py — formats snapshot + overnight delta vs last 5pm.
  • btc_weekly_report.py — weekday stats report (descriptive only).

Outputs (state)

  • Data: ~/Workspace/state/btc-prices.jsonl
  • Daily TSV: ~/Workspace/state/btc-daily.tsv
  • Graph PNG (outbound media): ~/.openclaw/media/outbound/btc-daily.png

Cron jobs (OpenClaw Gateway)

Managed via OpenClaw cron:

  • Hourly sample (silent)
  • 5am sample + message + graph
  • 5pm sample + message + graph
  • Weekly report (Sun 5:10pm)

These jobs call scripts in this repo.

Notes

This repo intentionally does not contain personal memory files or secrets.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages