Project Info
Inspiration
Finance isnβt a subject commonly taught thoroughly in schools, yet it plays a crucial role in everyoneβs lives. Many people, especially students, grow up without exposure to financial concepts, making it challenging for them to navigate real-world financial decisions. This lack of financial knowledge can lead to overwhelming debt, poor savings habits, and financial stress. In our lives, we have seen that these knowledge gaps in finance can cause enormous hurdles when entering college, internships, or the corporate world as young adults struggle to manage their growing debt and earnings.
What it does
traider is an educational platform that provides beginner investors with mock trading simulations and instantaneous AI-powered feedback for their trades. Scraping REAL historical and current stock data from Yahoo Finance, traders can engage with accurate market data and place their trades over a user-specified simulation duration beginning at a specified start date. Unlike models trained on outdated datasets, our product offers real, relevant market and economic data based on the stock ticker and current date in the simulation, which we then synthesize with NVIDIA to supplement young traders with more robust information to fuel their financial decision-making. This allows users to make informed trades using accurate and up-to-date market information. Our product stands out from other trading simulations in that it allows students to pick any timeframe in the past to put their trading skills to the test. Further, our supplemental market events information provides a more detailed painting of the financial landscape during the simulation, encouraging informed investing. Our dynamic and colorful data insights allow students to examine takeaways, while our AI-powered feedback for each executed trade promotes healthy learning and detailed mistake analysis. The leaderboard and financial calculator features offer a social and educational playground for students to explore the world of trading while gamifying finance like never before.
How we built it
Frontend: Next.js Tailwind Vercel/v0: We ran multiple versions of v0 to fine-tune and perfect out front end while asking for abstract animations for the background and generated complex containers for the simulator page Shadcn: Awesome built-in Next.js UI library which provided interactive graphic cards for buttons and pop-outs Figma Canva Radix UI Lucid React Backend: NVIDIA: We used NVIDIA and NVIDIA Cloud Compute to test the model. We used NVIDIA bev dev on a T4 GPU Cloud Instance to run a Jupyter notebook through Ubuntu Linux to fine-tune Lama 70b on financial prediction data Vercel Hosting Fast API Perplexity: We used it for the AI stock trading feedback simulator OpenAI: Used NVIDIA llama-70B to generate responsive and instantaneous feedback on stock exchanges. Additionally, provided a section for students to ask questions about the stock market and other financial questions Google Search API: Scrape relevant market and economic events given a stock ticker and a date. Once we scanned financial news websites for economic data, we passed it through NVIDIA using llama 70B to get the best possible market consensus on a stock ticker and synthesize that information to display to users. This enhanced their decision-making process as they decided on how to place trades.
Challenges we ran into
Finding an accurate LLM to provide users feedback on their trades Providing a layout for the various data visualizations in an aesthetically pleasing and non-overwhelming manner Handling massive amounts of stock data from Yahoo Finance and parsing through it to calculate daily portfolio values with complex mathematical calculations Picking up new technology and integrating with databases with which we have no prior experience, such as Convex Handling the dynamic animations on the homepage Combining the v0 code with preexisting code and integrating the frontend with the backend Real-time data handling: stock and trading information datasets led to rate limits we faced when making our API calls Finding a logo that would encompass our product. We spent a lot of time ideating different designs on Figma
Accomplishments we're proud of
Backend: We were excited to be able to integrate and leverage AI models, such as Perplexity and Llama 70B, NVIDIA Brev, and cloud computing, for numerous features of our trading simulation. These included providing young investors instantaneous feedback on their trades, parsing through and summarizing market data with Google Search API and Llama 70B, and offering an AI-powered chatbot that answers users' questions and concerns regarding finance and trading. We were also proud to utilize a database technology that was new to us, Convex, to store user information. Through Clerk, we could also set up secure user authentication through Google sign-in. Additionally, we leveraged the Yahoo! Finance API to consolidate and display financial stock data for any time frame the user needed, allowing the user to see detailed stock information, such as high, low, open, close, volume, and more. These complex calls and technology integrations allowed for a seamless user experience and analytical trading dashboard. Frontend: We are proud of our dynamic homepage UI and the detailed and analytical simulator page UI. Their seamless and intuitive interfaces make them easy to use for our young target audience. We paid close attention to the color scheme, ensuring that it aligns with our brand identity and creates a visually cohesive and inviting interface. The result is a user-friendly design that is both functional and appealing, providing an enjoyable experience for users of all experience levels. Additionally, the components we are most proud of are the Homepage for its nifty abstract animations, which make the page more exciting. The home pageβs color palette is also bright, giving it a more vibrant feel since it is marketed towards students to encourage them to learn more about finance. Another page we are proud of is the trading simulation and portfolio analytics page. The UI is attractive and enhances the theme. Many of the boxes and the pop-out form offer interactive and dynamic components. We were also proud to be able to offer various features on our page in just 36 hours of coding, from financial calculators to a leaderboard to data visualizations regarding portfolio analytics. We thoroughly enjoyed building this engaging product and integrating the technical backend with an appealing front end.
What we learned
Through developing this project, we learned about the complexity of designing scalable backend architectures, handling real-time data processing, and optimizing system performance. We learned the importance of efficient database structuring to maintain data integrity while ensuring fast retrieval. Additionally, we also deepened our understanding of financial market mechanics, from order execution to portfolio management, and the challenges involved in simulating a fair and realistic trading environment. Most importantly, we gained valuable experience working collaboratively and iterating design choices to build the most reliable user-centric platform.
What's next
Next mission for traider is to bring it to the real market with users of all age groups who are students to try our product out. We also plan on implementing more robust features, such as fine-tuning an LLM on trades and historical stock data to provide more tailored insights to users, developing a more social aspect of the platform to allow young investors to share their accomplishments with their networks, and integrating voice-based AI-powered chat support for our younger client base. We would also aim to build AI-generated weekly quizzes and maintain performance metrics and streaks to keep our users rewarded and engaged on a daily. Additionally, we would love to implement cryptocurrency in our platform.
π traider - High-Performance AI-Powered Stock Trading Simulator
π Inspiration
Finance isnβt a subject commonly taught thoroughly in schools, yet it plays a crucial role in everyoneβs lives. Furthermore, professional trading tools are often inaccessible or too complex for beginners. We created traider to bridge this gap, providing a risk-free environment that combines high-performance C++ analytics with AI-driven insights to help users master the markets.
π― What It Does
traider is a next-generation educational platform that leverages a hybrid C++/Python architecture to deliver professional-grade trading simulations:
- π High-Performance C++ Core β Backtesting and technical analysis executed with bare-metal speed.
- π Real-Time Simulation β Trade using historical & current data with millisecond-latency processing.
- π€ AI-Powered Feedback β Instantaneous trade analysis using Llama 70B on NVIDIA Cloud Compute.
- π Advanced Technical Indicators β Real-time calculation of SMA, EMA, RSI, VWAP, and Bollinger Bands using our custom C++ engine.
- π° Market Sentiment Analysis β AI synthesis of financial news to inform trading decisions.
- π Gamified Learning β Compete on leaderboards and track portfolio performance metrics like Sharpe Ratio and Max Drawdown.
traider differentiates itself by running its heavy-lifting simulation logic in C++, ensuring accuracy and scalability, while using Python and AI for high-level reasoning and user interaction.
π οΈ How We Built It
πΉ Core Engine (C++)
The heart of traider is a high-performance C++ extension (traider_cpp) exposed to Python via Pybind11. This layer handles all compute-intensive tasks:
- Backtesting Engine: Simulates trading strategies over historical data with O(n) efficiency.
- Technical Indicators: Optimized implementations of SMA, EMA, RSI, VWAP, and Bollinger Bands.
- Data Processing: Fast normalization and manipulation of OHLCV (Open, High, Low, Close, Volume) market data.
- Portfolio Analytics: Real-time calculation of risk metrics like Sharpe Ratio, variance, and returns.
πΉ Backend (Python & AI)
Our Python backend acts as the orchestration layer, integrating the C++ engine with modern AI capabilities:
- FastAPI β High-performance API server bridging the frontend and the C++ core.
- NVIDIA Cloud Compute β Hosting Llama 3.3 70B for deep semantic analysis of market news.
- Google Search API β Real-time financial news scraping.
- Yahoo Finance API β Source for raw historical market data.
πΉ Frontend
- Next.js β React framework for a responsive, interactive dashboard.
- Tailwind CSS & ShadCN β Modern, clean UI components.
- Recharts β Visualizing the high-frequency data streams from our backend.
- Convex & Clerk β Real-time database and secure authentication.
β‘ Challenges We Faced
- C++/Python Integration: Developing a seamless interface between the C++ simulation engine and the Python backend using Pybind11.
- Memory Management: Ensuring zero-copy data transfer where possible to maintain high performance.
- Cross-Platform Compilation: configuring the build system (
setup.py/CMake) to work reliably across different environments. - AI Hallucination Control: Fine-tuning prompts for the Llama 70B model to ensure financial advice remained grounded in data.
- Real-Time Data Sync: coordinating the C++ calculation pipeline with live frontend updates.
π Accomplishments We're Proud Of
πΉ System Architecture
- Built a hybrid execution environment where C++ handles the math and Python handles the logic.
- Achieved significant performance gains in backtesting speed compared to pure Python implementations.
- Successfully integrated NVIDIA's Llama 70B for context-aware financial commentary.
πΉ Product Quality
- Designed a professional-grade dashboard that abstracts away the complexity of the underlying C++ engine.
- Created a robust educational tool that offers both quantitative rigor and qualitative insights.
π What We Learned
- Systems Programming: The importance of memory safety and type strictness when building financial engines.
- Foreign Function Interfaces (FFI): How to effectively bridge high-level and low-level languages.
- Financial Engineering: Deepened our knowledge of technical analysis algorithms and portfolio theory.
- Scalable Architecture: Designing a system that leverages the best tools for each specific job (C++ for speed, AI for reasoning).
Screenshots
Analysis
View
Metric
- 36
- 25
- 13
- 6
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CIn code
- C++In code
- CSSIn code
- FastAPIIn code
- JavaScriptIn code
- Next.jsIn code
- OpenAIIn code
- PythonIn code
- ReactIn code
- SupabaseIn code
- Tailwind CSSIn code
- TypeScriptIn code
- VercelClaimed
12 of 13 appear in the indexed code. 1 claimed on Devpost could not be matched to code, which may simply mean the tool leaves no trace in the repository.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
200 KB
Source files
62
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
ajagtapdev/traider
88 files Β· 1.2 MB Β· @ 251a5ef
Structure
Interface
32 files Β· 36%Screens, components and styles rendered to the user.
+1 moreAPI & routing
4 files Β· 5%Request entry points: routes, handlers and controllers.
Application logic
27 files Β· 31%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here β open the file browser to check anything the diagram implies.
Languages
- TypeScript74%
- C++11%
- Python7%
- C3%
- Markdown2%
- CSS1%
- Other (1)1%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
package.json
npm Β· 36- @clerk/clerk-react
- @clerk/clerk-sdk-node
- @radix-ui/react-dialog
- @radix-ui/react-label
- @radix-ui/react-popover
- @radix-ui/react-radio-group
- @radix-ui/react-scroll-area
- @radix-ui/react-select
- @radix-ui/react-separator
- @radix-ui/react-slot
- @radix-ui/react-tooltip
- @supabase/supabase-js
- class-variance-authority
- clerk
- clsx
- framer-motion
- lucide-react
- next
- +18 more
backend/requirements.txt
pypi Β· 13- fastapi
- html5lib
- openai
- pandas
- pybind11
- pydantic
- python-dotenv
- requests
- requests_html
- setuptools
- uvicorn
- wheel
- yahoo_fin
requirements.txt
pypi Β· 13- fastapi
- html5lib
- openai
- pandas
- pybind11
- pydantic
- python-dotenv
- requests
- requests_html
- setuptools
- uvicorn
- wheel
- yahoo_fin
Declared in the repositoryβs manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This projectβs features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.