This software is offered "as is" and comes without warranty. This software and information about this software is for entertainment and educational purposes only. This is not investment advice. Use this software at your own risk.
This software is a cron job that buys an index of cryptocurrency based on market cap.
It uses
- Coinbase Pro API
- CoinMarketCap API
For a detailed explanation how v1 is built,
check out building a tool for dollar cost averaging (DCA) in Coinbase Pro.
Create the following files (ignored by Git).
.env.productionto run the script against your Coinbase Pro account..env.developmentif you plan to develop the script against the Sandbox environment.
Copy the template in .env.example to these files to get started.
Upload each environment variable as an encrypted secret in GitHub, so they can be used by the GitHub Action.
Install project dependencies.
yarnRun the app in development mode.
yarn devThe following script will run the script with your prod credentials. Remember, this is going to attempt to buy crypto with real money. Proceed with caution.
yarn purchaseEnable the GitHub Action cron job. (Disabled by default when you first clone this repo)
yarn cron:enableDisable the GitHub Action cron job.
yarn cron:disableOnce you enable or disable the cron job, make sure to push the change so that it will take effect.
Donations are much appreciated! 💙