Back to Projects
Stock Pulse

Stock Pulse

StockPulse is a university project that analyzes the sentiment of financial news related to publicly traded companies. It combines a lightweight backend architecture (C# API + FastAPI NLP service) with a responsive React frontend.

Jun 2024 - Aug 2024 2 months

Tech Stack

ReactTailwind CSSDaisyUIASP.NETPythonFastAPICaddyDockerJavaScript / TypeScriptC#NLP (Natural Language Processing)

Overview

StockPulse provides real-time sentiment analysis of the latest news for a given stock ticker. It leverages the NewsData.io API for fetching financial news and a local NLP service for sentiment classification.

Users can:


Architecture

Frontend (React + Vite + Tailwind + DaisyUI)


C# API (ASP.NET Core) ← loads ticker data & validates symbols


Python FastAPI (NLP Service) ← fetches news, performs sentiment analysis

Proxy setup Caddy or Vite’s proxy forwards /api/* requests to the backend services, enabling local development without CORS issues.


Features


Tech Stack

LayerTechnology
FrontendReact, Vite, Tailwind CSS, DaisyUI
Backend (API)ASP.NET Core (.NET 8)
NLP ServicePython, FastAPI, httpx, Pydantic
Data SourceNewsData.io
DeploymentCaddy, Docker-ready
LanguageJavaScript / TypeScript, C#, Python

Directory Structure

StockPulse/
├── frontend/ # React + Vite client
│ ├── src/
│ │ ├── components/
│ │ ├── hooks/
│ │ └── App.jsx
│ └── vite.config.js

├── StockPulse.Api/ # C# backend
│ ├── Controllers/
│ ├── Data/tickers.csv
│ └── Program.cs

└── nlp/ # Python NLP microservice
├── routers/
├── services/
└── main.py

Run Locally

git clone https://github.com/Puchungualotsqui/stock_pulse
cd StockPulse
./start_stockpulse.sh dev

then open http://localhost:5173/

Enviroment Variables:

VariableDescription
NEWS_API_KEYAPI key from NewsData.io
PORTOptional, overrides default port for the NLP service

Academic Notice

This project was created as part of a university data science course. It is not intended for commercial or financial use. Data and sentiment classifications are for educational demonstration only.

View All Projects