Skip to content

tjk213/btc-bot

Repository files navigation

BTC-Bot: Rolling Bitcoin ROI

clasp

btc-bot is a GoogleScripts system for auto-updating google sheets with BTC historical data. The system produces charts that look something like this:

Screen Shot 2022-08-31 at 2 28 32 PM

Distribution

The charts are auto-updated on a monthly basis and the results are shared via email. If you would like to be added to the distribution list please send me a note at tjk213@gmail.com.

Building & Deployment

btc-bot can be built with the following:

% pip install -r requirements.txt  # Install python dependencies
% make                             # Build btc-bot

The build system's primary function is to inline all CSS into embedded HTML style tags in preparation for emailing. For more information on why this is necessary, see HTML Compilation Notes.

Once built, btc-bot is ready for deployment to the GoogleScripts system, which is managed through Clasp.

Contributing

Contributions are welcome. If you would like to contribute or make a request please feel free to open an issue, PR, or contact me via email.

Troubleshooting

If you have issues with clasp connecting to google, it may be a known issue. A few quick things to try:

  • Enable Google Apps Script API (follow instructions here)
  • Downgrade to clasp v2.3.1 (see this issue)
    • Run: npm install -g @google/clasp@2.3.1