Generate daily Bitcoin ASCII chart archives with automatic commits
Pipeline.run(lookbackDays) walks back lookbackDays from yesterday to today.
For each day it:
- Fetches 30-minute candlesticks from the Binance Futures API using native
fetch. - Renders an ASCII candlestick chart and daily OHLC statistics.
- Writes the archive to
archive/YYYY/MM/DD.md. - Stages and commits the file, backdated to that day. Unchanged days are skipped.
import pipeline from '@neabyte/bitcoin-ascii'
await pipeline.run(30) // archive the last 30 daysThis project is licensed under the MIT license. See the LICENSE file for details.