A full-stack real-time trading application built using modern frontend technologies, big data tools, and a scalable backend database.
-
frontend/-- Built with Next.js, Tailwind CSS, real-time charts, and secure auth. -
kafka-pipeline/-- Streams live stock data using Kafka, Spark, and Alpha Vantage API. -
CassandraJavaConnection/-- Java backend using Cassandra for transactions and history. -
Trading Matchmaking Algorithm/-- Implements core order-matching logic in Java.
trading-webapp/
βββ CassandraJavaConnection/ # Java backend using Cassandra DB
βββ frontend/ # Next.js + Tailwind frontend
βββ kafka-pipeline/ # Kafka + Spark based data stream
βββ Trading Matchmaking Algorithm/ # Java-based trading engine (matching logic)
A modern trading platform frontend built with Next.js and Tailwind CSS, featuring real-time data visualization and responsive design.
-
π Real-time market data with WebSocket integration
-
π± Fully responsive UI
-
π Interactive trading charts
-
π Secure authentication flows
-
πΌ Portfolio dashboard
-
Framework: Next.js 14 (App Router)
-
Styling: Tailwind CSS + CSS Modules
-
State Management: Zustand/Redux Toolkit
-
API Client: Axios/React Query
-
Forms: React Hook Form + Zod
-
Testing: Jest + React Testing Library
git clone https://github.com/aditiids/trading-webapp.git
cd trading-webapp/frontend
npm install
cp .env.example .env.local
npm run dev
NEXT_PUBLIC_API_URL=your_api_url
NEXT_PUBLIC_WS_URL=your_websocket_url
frontend/
βββ public/
βββ src/
β βββ app/
β βββ components/
β βββ lib/
β βββ stores/
β βββ styles/
βββ tailwind.config.js
βββ next.config.js
npm run dev
npm run build
npm run start
npm test
A real-time stock data processing pipeline using Apache Kafka, Apache Spark, and Alpha Vantage.
-
Connect Kafka & Spark for data pipelines
-
Ingest real-time stock data from Alpha Vantage
-
Produce and consume Kafka messages
-
Analyze and clean data using PySpark
-
Store processed data or pass it downstream
-
Kafka + Zookeeper
-
PySpark
-
Cassandra
-
Alpha Vantage API
-
Kafka Python client
# Install Kafka, Spark, Java, Python
# Start Zookeeper & Kafka
kafka\bin\windows\zookeeper-server-start.bat config\zookeeper.properties
kafka\bin\windows\kafka-server-start.bat config\server.properties
pip install kafka-python requests pyspark
-
stock_producer.py-
Calls Alpha Vantage API
-
Pushes data to Kafka topic
stock_data
-
-
stock_consumer.py-
Reads data from Kafka
-
Preprocesses with PySpark
-
Writes to new topic or Cassandra
-
python stock_producer.py
python stock_consumer.py
-
stock_producer.py-- Producer script -
stock_consumer.py-- Spark consumer
-
Predict stock trends using Spark MLlib
-
Portfolio optimization based on user profile
A Java-based trading backend connected to a Cassandra database using DataStax Java Driver.
-
Buy/Sell stocks
-
View transaction history
-
Secure DB connection using Astra bundle
-
Interactive CLI for easy interaction
-
Java 21
-
Apache Maven 3.8.8+
-
Cassandra or Astra DB
-
Secure Connect bundle
git clone https://github.com/aditiids/trading-webapp.git
cd trading-webapp/CassandraJavaConnection
Configure credentials:
-
Add secure bundle to your project
-
Use the bundle path in
Connector.java
CassandraJavaConnection/
βββ pom.xml
βββ .idea/
βββ src/
β βββ main/
β βββ java/
β βββ org/example/
β βββ Connector.java
β βββ Main.java
β βββ Operations.java
A high-performance Order Matching Engine written in Java for trade execution.
-
Matches buy and sell orders
-
Uses limit price, FIFO rules
-
Supports order history via
Tradeclass -
Modular and extendable design
-
OrderMatchingEngine.java-- Main class containing matching logic -
Order.class,Trade.class-- Helper classes -
Compiled
.classfiles included -
A
hellotest file for demo/debug purposes
-
Integration with Kafka + Cassandra
-
RESTful API exposure
-
More complex order types (Stop, Market, etc.)
-
Fork the repo
-
Create a new branch
git checkout -b feature/your-feature -
Commit changes
git commit -m "Add feature" -
Push branch
git push origin feature/your-feature -
Create a Pull Request
MIT Β© Aditi Suryawanshi
