newstock / README.md
roshcheeku's picture
Create README.md
00c9a9b verified
metadata
license: mit

πŸ“ˆ Stock Sentiment Analysis & Price Prediction

A REST API for predicting stock prices using LSTM models trained on historical stock data and optional sentiment scores. Built with Flask and deployed using Docker on Hugging Face Spaces.


πŸš€ Features

  • Predict next price for top 5 stocks (AAPL, AMZN, GOOG, MSFT, TSLA)
  • Optionally include sentiment score for enhanced prediction
  • Models:
    • Without Sentiment: lstm_<TICKER>_model.h5
    • With Sentiment: lstm_<TICKER>_model_with_sentiment.h5

🧠 Usage

Endpoint: /predict

POST JSON with stock inputs:

{
  "ticker": "AAPL",
  "input": [165.2, 166.5, 167.0, 167.4, 168.0],
  "sentiment": 0.6
}