Trading simulator

This app is designed to be an algorithm that would allow me to experiment with various different trading straggles. It takes past information from an API and decides when to buy/sell stock. But it uses a virtual currency controlled from within the code.

I made this app because I have an interest in finance and wanted to learn more about investing. I initially used investopedia to research various stratagies for buy and selling stock, I found a solution that I liked where the algorithm used an API to to get the lowest and highest average for the month, this then gave me the points at which it was sensible to buy/sell.

I used an API called Alpha Vantage, this was recommended by StackOverflow and had great reviews. Using this API allowed me to gain an understanding on how to interact with APIs in general. I learn about HTTP methods and how to use them, and I learned about API keys and how to handle/manage data from an API.

A challenge I encountered was that Alpha Vantage was an API for the US stock market and so the UKs. This meant I had to run the app at unusual hours for me. I decided to learn how to use the Date Time python module so that the app would end and start automatically.

I wanted to log the transactions that took place so I created a csv file that would be appended when a sale was made. I also created a csv that would record the day-by-day statistics of the algorithm.

My plan going forwards is to collect data from the algorithm and upload a table to Github explaining the success rate of the algorithm and various other statistics.