Finance

Arth: real-time platform for personalised stock monitoring

Swapnil Patil, Aryan Ahire, Niranjan Naik

MIT Art, Design & Technology University, Pune, Maharashtra, India

Published December 2026

Abstract

Designed with retail investors in mind, Arth is a full-stack web platform that integrates price alerts, charts, stock search, company fundamentals, personal watchlists, and AI-generated market digests. It combines a Next.js and TypeScript application with BetterAuth, MongoDB, the Inngest event-driven workflow engine, Nodemailer email delivery, and market data from the Finnhub API. Google Gemini summarizes watchlist-related news supplied to it by the platform. This paper describes the system architecture, data model, implementation, and an evaluation approach for latency, workflow reliability, and summary quality. Arth aims to make timely and relevant market information easier to monitor; it does not execute trades or provide financial advice.

Keywords: AI-generated summaries; event-driven workflows; financial data; stock alerts; watchlists

Designed with retail investors in mind, Arth is a full-stack web platform that integrates price alerts, charts, stock search, company fundamentals, personal watchlists, and AI-generated market digests. It combines a Next.js and TypeScript application with BetterAuth, MongoDB, the Inngest event-driven workflow engine, Nodemailer email delivery, and market data from the Finnhub API. Google Gemini summarizes watchlist-related news supplied to it by the platform. This paper describes the system architecture, data model, implementation, and an evaluation approach for latency, workflow reliability, and summary quality. Arth aims to make timely and relevant market information easier to monitor; it does not execute trades or provide financial advice.

1Introduction

Over the past decade, low-cost brokerage applications and mobile access have increased retail participation in equity markets. However, tools used by professional investors are rarely available in one accessible place for retail users. Prices, fundamentals, news, and alerts are often spread across multiple websites, each of which must be checked independently.

Market data is time-sensitive. Generic news feeds may not focus on the stocks a user follows, while investors can benefit from timely notifications about price declines, volume increases, or earnings events. Even a modest watchlist can be laborious to monitor manually and may lead to important changes being overlooked.

Three technologies make a consolidated approach practical: large language models (LLMs) can summarize news, event-driven workflow engines can execute scheduled and multi-step background jobs, and financial data APIs expose quotes, candles, company profiles, and news through REST interfaces. This paper presents Arth, a platform that combines these capabilities.

Problem statement: retail investors lack a single lightweight tool that combines company information, market monitoring, configurable notifications, and concise news summaries tailored to their watchlists. Existing options may provide generic information or require continuous cross-platform checking.

The paper’s contributions are: (1) an integrated Next.js application for stock search, charting, company insights, watchlists, and alerts; (2) event-driven workflows for emails, AI digests, and alert evaluation, with step-level retries; (3) a design in which Finnhub supplies market facts and Gemini summarizes supplied information, with generated content clearly labeled; and (4) a documented prototype and an evaluation strategy whose claims are limited to the scenarios tested.

Arth is a monitoring and information system. It does not handle money, execute transactions, connect to brokerage accounts, or provide individualized investment advice. Data availability and refresh frequency depend on the Finnhub plan.

2Related work and enabling technologies

2.1Stock market data fundamentals

A stock quote typically includes the latest price, change from the previous close, and the day’s open, high, and low. Historical candles contain open, high, low, close (OHLC) values and volume over a defined interval. Line charts emphasize closing-price trends, while candlestick charts show the range of each interval. Fundamental indicators include price-to-earnings (P/E), earnings per share (EPS), and revenue.

2.2Finnhub market data

Finnhub provides financial data including stock quotes, historical candles, company profiles, basic financial indicators, and corporate news. Arth accesses these resources through server-side REST endpoints. API credentials are kept in environment variables and are not exposed to the browser. Requests are limited to the information required by a page and cached where the framework permits. Coverage and refresh frequency depend on the selected plan.

2.3Watchlists and alert thresholds

A watchlist is a user-specific collection of stock symbols. Alerts can be defined for price thresholds, percentage changes, or volume spikes. Fresh quote data is evaluated against each active rule; when a condition is met, an event is raised and a notification is dispatched. The last-triggered time is recorded to reduce repeated notifications for the same condition.

2.4Event-driven workflows

In an event-driven architecture, components communicate through events rather than relying entirely on direct calls. Inngest supports named events, scheduled functions, step-level state, and retries. Arth uses it for welcome emails, scheduled alert evaluation, daily digests, and earnings notifications. A failed step can be retried without rerunning completed steps.

2.5Authentication and persistence

BetterAuth provides authentication and session management, with user and session records stored through a MongoDB adapter. MongoDB stores flexible document records for user preferences, watchlists, alerts, news posts, and activity. Application routes and server actions check the session before returning user-specific information; administrative routes additionally check the user’s role.

2.6Email and AI summaries

Nodemailer sends welcome messages, alert notifications, earnings notices, and daily digests using configured email delivery. Google Gemini is used to summarize watchlist news and to generate a welcome introduction from onboarding preferences. Finnhub supplies the underlying prices, metrics, and news; Gemini is used for summarization rather than market prediction. Generated summaries are labeled as AI-generated and not financial advice.

2.7Web application technologies

The application uses Next.js and React for the interface and server-side application functionality, TypeScript for static typing, Tailwind CSS and shadcn/ui for interface styling, and a charting library for line and candlestick views.

3System architecture

Arth uses a tiered architecture within a Next.js application. The presentation layer consists of React server and client components styled with Tailwind CSS and shadcn/ui. The application layer contains server actions and API routes that validate sessions, access the database, and call external services. MongoDB forms the persistence layer for users, sessions, watchlists, alerts, news posts, and activity records.

The application layer communicates with Finnhub for market data and news, Google Gemini for summaries, and an SMTP provider through Nodemailer for email. Inngest runs background functions in response to events or scheduled triggers, maintaining step state and retrying failed steps.

3.1Data flow

3.2Design considerations

Finnhub, Gemini, SMTP, and authentication secrets remain in server-side environment variables. External calls are made only when needed and cached where supported. Inngest handles slow background operations so that ordinary page interactions remain responsive. Watchlist, alert, and digest data are scoped to the logged-in user, and administrative pages are restricted by role.

3.3Main modules

The platform comprises onboarding and authentication; stock lookup; charts and dashboards; company insights; watchlist management; notifications and alert rules; event-driven workflow processing; AI-generated summaries; and an administrative dashboard for featured stocks, news posts, and user activity.

4Implementation

4.1Market data and charts

Finnhub requests for symbol search, quotes, historical candles, profiles, basic analytics, and company news are made server-side. Line charts display closing-price patterns, while candlestick charts show OHLC ranges for each interval. Company pages display available metrics, news, filings, analyst ratings, and profile information.

4.2Alert engine

An alert is a rule associated with a symbol, such as a price threshold, daily percentage change, or volume spike. A scheduled Inngest function retrieves fresh quotes and evaluates active rules. When a condition is met, the system sends an email and records the last-triggered timestamp to reduce duplicate notifications.

4.3Event-driven workflows

Each workflow separates operations such as retrieving data, calling the language model, and sending email into named steps. A transient SMTP timeout or Finnhub rate-limit response can cause the relevant step to be retried while completed steps remain recorded. Implemented workflows include welcome emails, scheduled alert evaluation, daily digests, and earnings notifications.

4.4Grounded AI summaries

The design separates source facts from generated explanation. Finnhub provides the prices, metrics, and news; Gemini summarizes the news and user preferences supplied in the prompt. The underlying source data is displayed alongside the generated summary, which is labeled as AI-generated and not financial advice. This reduces, but does not eliminate, the risk of inaccurate generated text.

4.5Administration and development

Administrators can manage featured stocks, publish news articles, and monitor user activity and engagement. The application is configured through environment variables and can be run locally using the project’s Node.js scripts alongside the Inngest development server.

4.6Reliability and error handling

External requests are handled with error paths to avoid presenting broken pages when a service fails. Background operations can be retried through Inngest. Generated text is kept distinct from the original data so that users can compare a summary with its sources.

5Evaluation

5.1Methodology

The evaluation approach tests modules individually and then checks the end-to-end workflow. The described test coverage includes unit tests for data formatting, alert-condition evaluation, and input validation; integration tests across the interface, server actions, MongoDB, Finnhub, Gemini, and Nodemailer; workflow tests using the Inngest development server and step-level run logs; API tests for responses, authorization, and error handling; responsiveness checks on desktop and mobile in light and dark themes; and code review with CodeRabbit and manual review.

5.2Interpretation

The prototype is designed to take a user from sign-up to a functional watchlist, notifications, and an AI-generated digest without requiring manual actions between each step. Step-level retries are intended to allow transient API or SMTP failures to be retried, while moving alert checks, email delivery, and AI calls into background workflows helps keep page interactions responsive. The supplied manuscript does not provide measured alert latency, a quantified summary-quality score, or detailed user-feedback results; these outcomes therefore cannot be claimed quantitatively.

5.3Security and reliability review

Security controls include session checks, server-side handling of third-party credentials, server-side validation of search, alert, and administrative inputs, and role checks for administrator routes. The source paper identifies tests for incorrect passwords, unauthenticated dashboard access, and regular users attempting to access administrative routes. A simulated Finnhub rate-limit or service error is used to examine workflow retry behavior.

5.4Threats to validity

The evaluation is small-scale and cannot establish behavior under production load. Results depend on the Finnhub plan, schedule interval, network conditions, and test region. Gemini output can vary across runs and model versions. Summary quality requires a defined rubric and preferably human reviewers; informal inspection is insufficient evidence of factual accuracy. Email timing and spam filtering also depend on the SMTP provider.

6Discussion and limitations

A central design choice is to keep source data separate from AI-generated explanation. Because Finnhub supplies the market facts and Gemini summarizes supplied material, users can compare a digest with the displayed source information. This does not guarantee that every generated statement is correct.

Known limitations include Finnhub coverage, refresh-frequency and rate constraints; scheduled rather than tick-by-tick alert evaluation; possible delays or spam filtering in email delivery; and potential errors or omissions in AI summaries. The platform does not track actual holdings, connect to brokers, or execute trades. Its indicators and analytics are limited to information available from the API. The current assessment does not systematically measure summary accuracy, large-scale alert latency, or high-load behavior.

The AI features are deliberately limited to writing tasks: a news digest and a welcome message. Gemini is not asked to forecast prices or recommend trades. Each summary is labeled as AI-generated and not financial advice, with underlying data shown alongside it. Future work could attach source-article citations to individual summary statements and use human reviewers to assess factual consistency.

Arth is not intended to replace comprehensive financial portals or advanced charting platforms. Its intended value is the integration of a personal watchlist, automated alerts, and a customized daily digest in a lightweight workflow.

7Conclusion and future work

Arth demonstrates a full-stack TypeScript approach to personalized stock monitoring by integrating market data, watchlists, configurable alerts, and AI-generated news summaries. Users can sign in, search for stocks, view charts and company information, create watchlists, configure alerts, and receive automated emails and daily digests. Finnhub supplies the underlying data, while Gemini summarizes supplied information; Inngest supports scheduled and event-driven background processing. Arth should be understood as a monitoring and information tool, not a trading platform or source of financial advice.

Future work includes adding broader Indian-market coverage through NSE and BSE data sources; streaming updates through WebSockets; adding messaging, SMS, and push notifications; supporting portfolio holdings and profit-and-loss analysis; incorporating technical indicators such as MACD, RSI, and moving averages; grounding summary statements in citations to source articles; and conducting larger-scale load, alert-latency, usability, and summary-accuracy evaluations.

Dashboard overview and stock search.
Figure 1. Dashboard overview and stock search.
Personalization and onboarding interface.
Figure 2. Personalization and onboarding interface.

References

  1. [1]A. Patel and R. Kumar, “Artificial intelligence based stock market prediction using machine learning algorithms,” IEEE Access, vol. 10, pp. 45231–45245, 2022.
  2. [2]J. Brown, M. Smith, and L. Taylor, “Real-time financial data processing applications,” IEEE Transactions on Cloud Computing, vol. 11, no. 3, pp. 2154–[page range incomplete in source].
  3. [3]S. Verma and P. Sharma, “Stock market forecasting using deep learning and analysis,” IEEE Transactions on Artificial Intelligence, vol. 5, no. 2, pp. 420–431.
  4. [4]D. Wang, Y. Chen, and T. Li, “Machine learning techniques for intelligence prediction systems,” IEEE Access, vol. 9, pp. 118234–118250, 2021.
  5. [5]K. Mehta and A. Singh, “AI-driven portfolio recommendation and investment platform,” International Journal of Financial Technology, vol. 8, no. 4, pp. 98–110.
  6. [6]M. Lewis, Y. Liu, and L. Zettlemoyer, “BART: Denoising sequence-to-sequence pre-training for natural language generation,” in Proc. 58th Annual Meeting of the Association for Computational Linguistics, pp. 7871–7880, 2020.
  7. [7]V. Aryabumi et al., “Aya Expanse: Combining research breakthroughs for multilingual systems,” arXiv preprint arXiv:2412.04261, 2024.
  8. [8]Next.js Documentation Team, “Next.js official documentation,” Vercel Inc. [Online]. Available: https://nextjs.org/docs
  9. [9]React Development Team, “React.js official documentation,” Meta Platforms. [Online]. Available: https://react.dev
  10. [10]Node.js Foundation, “Node.js runtime environment documentation,” 2025. [Online]. Available: https://nodejs.org
  11. [11]Nodemailer Community, “Nodemailer official documentation for email automation.” [Online]. Available: https://nodemailer.com
  12. [12]Inngest Documentation Team, “Inngest background job processing documentation.” [Online]. Available: https://www.inngest.com/docs
  13. [13]Better Authentication Team, “Better Auth documentation for authentication and session management.” [Online]. Available: https://www.better-auth.com
  14. [14]T. Nguyen and H. Lee, “Real-time stock visualization using scalable web technologies,” IEEE Transactions on Visualization and Computer Graphics, vol. 29, no. 7, 2023.
  15. [15]R. Jain and P. Kulkarni, “Secure authentication and session management for web applications,” IEEE Security & Privacy, vol. 21, no. 5, pp. 55–63, 2024.
  16. [16]A. Gupta and S. Rao, “Predictive analytics in financial technology using artificial intelligence,” Journal of Financial Computing, vol. 15, no. 1, pp. 22–38, 2023.
  17. [17]Tailwind CSS Labs, “Tailwind CSS documentation.” [Online]. Available: https://tailwindcss.com/docs
  18. [18]M. Anderson and J. Walker, “Cloud-based scalable architecture for real-time trading systems,” IEEE Transactions on Services Computing, vol. 18, no. 1, pp. 102–116, 2024.