360 Secure SkillHub
360 安全技能中心

Reddit Stonks

该 Skill 会抓取 7 个股票相关 subreddit 的热门帖子,提取其中的股票代码,抓取 Yahoo Finance 行情与基本面数据,再交给 DeepSeek 生成首选、次选、高风险标的、风险因素与置信度等短期选股分析,支持命令行与本地 Web 两种使用方式。

altusrossouw
altusrossouw
热度 28.45
最近更新 2026-05-18 16:47:15
分类:数据依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:市场分析 / 财务 / 报告撰写 / 推荐 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add reddit-stonks
Metadata
name
reddit-stonks
version
1.1.0
description
Scrape Reddit stock pages (r/wallstreetbets, r/stocks, etc.) and use Deepseek AI to analyze which stock has the highest 1-week return potential. Includes a web app (uvicorn app:app). Use when the user asks about stock picks, Reddit stock sentiment, meme stocks, investing ideas from Reddit, "what should I buy", "best stock this week". Supports --euro flag for European exchange equivalents.
metadata
{"openclaw":{"requires":{"env":["DEEPSEEK_API_KEY"],"bins":["python3"]},"primaryEnv":"DEEPSEEK_API_KEY","homepage":"https://github.com/AltusRossouw/reddit-stonks","emoji":"📈"}}

Reddit Stonks Analyzer

Analyze Reddit stock sentiment + AI-powered stock picks for short-term returns.

Setup (first time only)

cp .env.example .env
# Edit .env: add DEEPSEEK_API_KEY
pip install -r requirements.txt

Quickstart

# Terminal mode
python3 stonks.py
python3 stonks.py -e -p 25

# Web app mode
python3 -m uvicorn app:app --host 0.0.0.0 --port 8080
# Open http://localhost:8080

Flags

Flag Description
-e, --euro Show European exchange equivalents for top picks
-p N, --posts N Posts per subreddit (default: 50)

How it works

  1. Scrapes 7 stock-related subreddits (r/wallstreetbets, r/stocks, r/investing, r/pennystocks, r/StockMarket, r/thetagang, r/dividends) for hot posts
  2. Extracts stock tickers ($TICKER and all-caps mentions) from post titles and bodies
  3. Fetches real-time stock data via Yahoo Finance (price, P/E, beta, volume, short float, analyst targets)
  4. Sends everything to the Deepseek AI for analysis

Output

Generates a stock data table, then AI analysis with:

  • Top Pick (best 1-week return)
  • Runner-up
  • Wildcard (high risk/reward)
  • Risk factors
  • Confidence score
  • Optionally: European exchange equivalents

Architecture

  • stonks.py — orchestrator + AI analysis via Deepseek
  • reddit_scraper.py — scrapes 7 subreddits via Reddit JSON API (no auth required)
  • stock_data.py — Yahoo Finance fundamentals/technicals + European ticker lookup

Disclaimer

AI-generated analysis for entertainment/educational purposes only. Not financial advice.