An algorithmic trading project for testing and benchmarking robots and operating robots on live finances
- AlphaVantage API
- Robinhood broker API
- Python 3.6+
- python packages
- matplotlib
- mplfinance
- numpy
- pandas
- scipy
- alpha_vantage
- pandas_market_calendars
- robin_stocks
- Create a list of symbols to trade with:
symbolsAll, seesymbolsExample - Get an API ket from AlphaVantage. Write to file
apikey - Run pruner to evaluate the predicted health of the symbols:
python stonks prune - Run tester to validate robot trades successfully:
python stonks test - Run benchmark to give the robot random scenarios:
python stonks bench - Add robinhood credentials to
robinhood, seerobinhoodExample - Give the robot control of your live account:
python stonks live
The algorithms are located in stonks\algorithms. KIPP is a crossover robot that anaylzes a fast (1 day) average versus a slow (5 day) average. When those averages cross, it trades appropriately. Modify this function to create new robots. Symbols is the list of available stocks. Portfolio is the account of shares and cash. Exchange provides current and historical data: open, high, low, close