Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhijithganesh/stocksage
My stock analysis project using LSTM and SARIMA. This is a test project and it is not financial advise.
https://github.com/abhijithganesh/stocksage
arima docker fastapi grafana jupyter jupyter-notebook lstm postgresql sarima stock-market tensorflow
Last synced: 26 days ago
JSON representation
My stock analysis project using LSTM and SARIMA. This is a test project and it is not financial advise.
- Host: GitHub
- URL: https://github.com/abhijithganesh/stocksage
- Owner: AbhijithGanesh
- License: agpl-3.0
- Created: 2023-10-12T21:36:47.000Z (about 1 year ago)
- Default Branch: brainstorming
- Last Pushed: 2024-01-29T16:35:00.000Z (9 months ago)
- Last Synced: 2024-01-29T19:50:02.884Z (9 months ago)
- Topics: arima, docker, fastapi, grafana, jupyter, jupyter-notebook, lstm, postgresql, sarima, stock-market, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 285 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stock Price Prediction Project
## Introduction
This project aims to predict the stock price of Apple Inc. (AAPL) using data
from Yahoo Finance via the Rapid API. The prediction models are based on SARIMA
(Seasonal Autoregressive Integrated Moving Average) and LSTM (Long Short-Term
Memory) implemented using TensorFlow. The project also utilizes Grafana for data
visualization, PostgreSQL for data storage, FastAPI for REST endpoints, and
Docker for containerization.## Disclaimers
This is just a sample analysis and it is not financial analysis for Apple Inc or
any stock. I've tested out both SARIMA and LSTM for this project and have stored
the weights of LSTM## Prerequisites
- [Python 3](https://www.python.org/downloads/)
- [Docker](https://docker.com)
- [Grafana](https://https://grafana.com/)
- [PostgreSQL](https://www.postgresql.org/)
- [FastAPI](https://fastapi.tiangolo.com/)
- [TensorFlow](https://www.tensorflow.org/install/pip)
- [Rapid API Key](https://rapidapi.com/search/yahoo%20finance)## How to get started
- Clone the repository
```bash
git clone https://github.com/AbhijithGanesh/StockSage.git
```- Set up your environment:
### Refer the [.env.example](.env.example)
```env
POSTGRES_USER=''
POSTGRES_PASSWORD=''
POSTGRES_DB=''
DB_HOST=''
RAPID_API_KEY=''
```- Installing python dependencies
```bash
pip install -r requirements.txt
```- Spin up the Docker Instance:
```bash
docker compose up
```- Run the FastAPI server:
```bash
uvicorn app:app
```## Acknowledgements
- Thanks to Yahoo Finance and Rapid API for providing the stock price data.
- The SARIMA and LSTM models are built using TensorFlow.
- Grafana and PostgreSQL help with data visualization and storage.
- FastAPI provides the RESTful API for accessing predictions.
- Docker makes the project containerized and deployable.## Tech Stack
- Data Fetching:
- Yahoo Finance
- Rapid API- Data Storage:
- PostgreSQL
- (TimeScaleDB will be implemented in the future)- Data Visualization:
- Grafana- REST Endpoint:
- FastAPI- Machine Learning Models:
- SARIMA
- LSTM (Long Short-Term Memory) using TensorFlow- Containerization:
- Docker## License
This project is licensed under the [GPL](.LICENSE). Feel free to re-use itπ
## Sample Visualization
![image](https://github.com/AbhijithGanesh/StockSage/assets/67182544/d73bd837-49f9-46e0-b6f6-c0bb1f6bb8b7)