Generate an equi-weighted portfolio of 10 stocks randomly selected from an index and see if it beats the underlying index!
Visit https://monkeybeat.market and have fun!
- Clone the repo locally
- Run
docker-compose upto start a local instance of Clickhouse DB. - Run
make schemawhich creates the database/tables. - Run
make seedwhich loads the database with initial data of last 3 years of a stock's closing price in DB. - Run
make freshwhich builds the binary and runs it.
NOTE: If you don't have clickhouse-client on the local machine, you can use:
alias clickhouse-client="docker exec -it clickhouse clickhouse-client"