- Create a project dir under
$GOPATH/src
mkdir -p $GOPATH/src/github.com/bwwu/stockbuddy
cd $GOPATH/src/github.com/bwwu/stockbuddy
git clone git@github.com:bwwu/stockbuddy.git
- Compile stockbuddy.
go build .
- Set TradingBot password as an env var.
export STOCKBUDDY_PASSWORD=<password>
- Run stockbuddy with appropriate flags, for example:
./stockbuddy --mail_to="foo@example.com,bar@example.com"
Name | Description | Example Usage |
---|---|---|
mail_to | comma-separated list of emails | "a@foo.com,b@bar.com" |
nomail | run stockbuddy without sending | --nomail=True |
use_watchlist | path to csvs of ticker symbols | "path/to/stocks.csv" |
Default watchlist is located at watchlists/default.txt.
You can also use Docker for development.
- Build the image setting the stockbuddy password.
docker build -t stockbuddy --build-arg secret=$STOCKBUDDY_PASSWORD
- Run the image.
docker run stockbuddy