Skip to content

TateCharboneau/hackcu2026

Repository files navigation

Inspiration

Poor financial decisions are often inspired by malicious actors on social media exploiting their audience and posing as experts. We wanted to allow for more transparency by providing real stats of what would happen if people were to follow said advice.

What it does

TradeTruth lets you upload a financial tip in a multitude of convenient formats such as a video file, a link to a clip online, or raw text and get real statistics of how it would perform. Our app runs a Monte Carlo simulation as a well as explicitly mark potential red flags. It outputs a list of warnings for flagged concepts (such as "Guaranteed Return"), alongside a series of visualizations that show the output of the simulation.

How we built it

Next.js 15 full-stack app with MongoDB for persistence and NextAuth + Google OAuth for auth. Financial tips and video URLs are transcribed via OpenAI Whisper + yt-dlp, then parsed into structured trade objects by GPT-4o-mini. A custom Monte Carlo engine in pure TypeScript bootstraps 2,000 price paths from real historical market data (via Polygon.io) to generate P&L distributions. Mantine UI handles the frontend, and all sensitive logic lives in server-side API routes.

Running

  1. Clone the repository
  2. Ensure NodeJS is installed
  3. Ensure pnpm is installed
  4. Run pnpm install in the root directory
  5. Put all the credentials into a .env.local file in the root directory
  • AUTH_SECRET a securely generated secret key for encrypting auth tokens
  • AUTH_GOOGLE_ID and AUTH_GOOGLE_SECRET for OAuth with Google
  • MONGODB_URI for the database
  • OPENAI_API_KEY for Whisper and ChatGPT use
  1. Run pnpm run dev and visit [http://localhost:3000] to view the site

App Screenshots

image Screenshot 2026-03-08 at 19-59-02 TradeTruth image

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors