Skip to Content
Bitcoin 9to5Architecture

Architecture

Bitcoin 9to5 is a single-file bot (bot.js) using ES modules.

Stack

PieceRole
Schedulingnode-cron for zone transitions (9:29 AM / 4:01 PM ET)
Price monitoring30s polling via REST API
API client@nadohq/client (Nado TypeScript SDK)
Walletviem for Ethereum wallet/signing (EIP-712)

Nado API docs: https://docs.nado.xyz/developer-resources/api  — auth is wallet-based via EIP-712 signing.

node-cron (zone flips) bot.js ──▶ @nadohq/client ──▶ Nado │ ▲ │ │ EIP-712 (viem) │ │ 30s price poll │ state files (.bot-state / .market-data / .zone-config)

Behavioral summary

  • Zones — short 9:29–4:01 ET weekdays; long overnight, weekends, holidays. Flips close and reopen. Times auto-adjust from market data.
  • Profit-taking — close at 1% favorable move (~10% PnL at 10x).
  • TP zone (longs) — with 6+ hours until short, trail 0.5% from peak; exit below entry or 6h before short.
  • Adaptive learning — sample every 5 min in 7–11 AM and 2–6 PM ET; reschedule at 6 PM ET daily.

State files (gitignored)

FileContents
.bot-state.jsonEntry price, zone, TP zone state
.market-data.jsonPrice snapshots for analysis
.zone-config.jsonCurrent optimal zone times
Last updated on