Building a Real-Time Stock Portfolio Tracker for NEPSE Investors

By Pujan Lamichhane ·

NepseView is a live portfolio tracking and market intelligence platform for investors on the Nepal Stock Exchange (NEPSE). I built it entirely on my own, from architecture to deployment. Here is how the main pieces fit together.

The core job

An investor wants to open one screen and know what their portfolio is worth right now, what moved, and whether anything needs attention. Every feature serves that job: live portfolio value, stock tracking by ticker or company, historical end-of-day data, alerts and fundamental analysis.

The stack

  • Next.js for the interface, with server rendering for public market pages
  • Django for the API, data models and background jobs
  • PostgreSQL for portfolios, holdings and historical data
  • Redis for caching hot market data
  • WebSockets for pushing live price updates to open dashboards

Live data without overload

Many users look at the same popular stocks at the same time. Instead of every request hitting the database, the latest prices live in Redis and updates are pushed over WebSockets to connected clients. The database stores history, and the cache serves the present.

Alerts people can trust

A price alert that arrives late is worse than no alert. Alerts are evaluated when new prices arrive, and each alert records when it fired so users never get duplicates for the same move.

Correctness first

In fintech, a wrong number destroys trust instantly. Portfolio calculations are kept in one place on the backend and covered by tests, so the dashboard, alerts and reports always agree.

Building something in finance? Read more about my fintech work or the full-stack development service.

Keep reading

Have a project in mind?

I help startups and teams worldwide design, build and scale web products. Tell me what you are building.

Start a project