URL to current app: https://stocktrading-4pm.herokuapp.com/
Travis CI to the master branch:
A simple easy to use app that helps you make more informed stock-related decisions.
This app displays a list of popular stocks and allows you to choose which ones you want to learn more about. Once you choose a stock, you will be able to see important information about it such as its current price per unit and a graph of its recent price history. In addition, the app will recommend stocks for you to buy based on your interests and specifications.
- Flask version 1.0.2
- Python version 3.6 and above
- iexfinance version 0.3.5
- plotly version 3.6.1
- matplotlib version 3.0.2
- numpy version 1.16.1
- pandas version 0.24.1
- ipython version 7.2.0
- beautifulsoup4 version 4.7.1
- lxml version 4.3.1
This assumes that Python 3.6 and above is installed.
Install all the required Python modules using this command:
$ pip3 install -r requirements.txt
Deploy your StockApp.py
script by executing the command
$ FLASK_APP=StockApp.py flask run
The site is deployed locally at http://localhost:5000/.
Alternatively, you can run
python3 StockApp.py
and the app will deploy at the URL listed above.
-
We are currently using Plotly to construct our graphs. However, every free account has a limit of 100 public graphs available. So, we must create a new account and input the new information into the top of 'graph.py' every time we run out of graphs for that account. We have used 3 (and counting) keys so far.
-
The live stock information the graph is formatted such that it's height is set to 85% the max y-value. This (usually) formats it nicely but sometimes, the formatting will be off. (Also there's a problem including the dollar sign symbol in the HTML-python string).UPDATE: Fixed! Now using an offset based off the max range or in otherwords, I used MAX - 0.4 * (MAX-MIN). The offset is 40% the maxrange.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Licensed under MIT License.