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.production
to run the script against your Coinbase Pro account..env.development
if 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.
yarn
Run the app in development mode.
yarn dev
The 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 purchase
Enable the GitHub Action cron job. (Disabled by default when you first clone this repo)
yarn cron:enable
Disable the GitHub Action cron job.
yarn cron:disable
Once you enable or disable the cron job, make sure to push the change so that it will take effect.
Donations are much appreciated! 💙