A family of automation bots for portfolio management and market analysis, each a focused Cloudflare Worker in TypeScript: a tracker (positions and performance), a strategy runner, a simulator, and a runway/cash-flow model, plus crypto-side bots for DCA, funding-rate, and capitulation signals.
The chart below uses synthetic, illustrative data. This portfolio contains no real account data, balances, or API keys.
Why Cloudflare Workers
These are scheduled, event-driven jobs, a perfect fit for Workers: no servers to
run, cron triggers for periodic execution, near-zero cold starts, and a
generous free tier. Each bot is independently deployable via wrangler, with its
own config and secrets kept out of source control.
- Tracker bot. Pulls positions, computes performance/exposure, snapshots state.
- Strategy bot. Evaluates rules on a schedule and emits signals/actions.
- Simulation bot. Monte-Carlo and backtest modeling of strategy outcomes.
- Runway bot. Cash-flow and runway scenarios from seedable inputs.
Engineering notes
- Typed end-to-end with strict TypeScript, plus Vitest unit coverage on the core math (returns, allocation, risk).
- Secrets discipline. Every key lives in Worker secrets or env, never in the repo. The simulators run on sanitized or synthetic inputs.
- Composable. Shared utilities across bots; each Worker stays small and single-purpose, which keeps them easy to reason about and cheap to run.