Skip to content

code735/Live-Reddit-Sentiment-Agent

Repository files navigation

Live-Reddit-Sentiment-Agent

We propose a live agentic system that continuously ingests Reddit discussions, updates sentiment signals in real time, and reacts autonomously to meaningful changes in market narratives.

image (4)

Setup

  1. Install Python 3.12 (required by pyproject.toml).
  2. Create and activate a virtual environment:
python3.12 -m venv .venv
source .venv/bin/activate
  1. Install dependencies:
pip install -e .
  1. Optional (Gemini-backed sentiment):
cp sentiment/.env.example sentiment/.env

Set GEMINI_API_KEY in sentiment/.env.

Run

  1. Start the API server:
uvicorn server.main:app

Reddit Crawler

plz see testrun.ipynb to see how to run

Data Models

Post Fields:

  • post_id, title, selftext, author
  • score, upvote_ratio, num_comments
  • link_flair_text, created_utc
  • is_edited, is_deleted, is_removed
  • content_hash (for change detection)

Comment Fields:

  • comment_id, post_id, parent_id
  • body, author, score, depth
  • is_submitter, is_edited, created_utc
  • content_hash (for change detection)

future improvements -

  1. RAG for finding information on dedicated tickers throughout reddit.
  2. market prediction history
  3. accept gemini_api_key from user.'

About

We propose a live agentic system that continuously ingests Reddit discussions, updates sentiment signals in real time, and reacts autonomously to meaningful changes in market narratives.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors