To follow along with the code in this article, you’ll need to have a recent version of Python installed. I’ll be using a custom build of ActivePython that includes a version of Python and just the packages the project requires.
There are many different stock trading platforms out there, some with their own APIs. Robinhood offers a commision-free investing platform that makes trading simple and easy.
Ideally, the trading bot should look at a predefined set of tickers within the portfolio and decide whether to buy, sell, or hold.
In this article, I demonstrated how Python can be used to build a simple trading bot using packages like pandas and robin-stocks.