The do-it-yourself trap
Counting ticker mentions on r/wallstreetbets sounds like an afternoon project. The first version usually is. You authenticate PRAW and pull the hot posts. Within a day you are managing Reddit's rate limits and pagination. You write a regex for tickers and discover that "ALL", "CEO", "YOLO" and "DD" are also valid symbols. You add a sentiment score and learn that off-the-shelf VADER reads "puts on $WEN, we're so back" as bearish and "this stock is going to zero, loading calls" as a coin flip.
No single step is hard. Together they are many small jobs that must keep running on a schedule before you see a number you trust. The shortcut is to get the scored data from an API and spend your time on the dashboard. The rest of this tutorial does that.
What you need
Setup takes about two minutes and needs three things:
- A free Adanos API key. Register at adanos.com/register. No card is required.
- Python 3.9 or newer.
- The libraries:
pip install streamlit requests pandas
One call for the whole leaderboard
The trending endpoint returns the most-mentioned Reddit tickers for a time window, each one already scored. It takes one request with no pagination:
curl "https://api.adanos.com/reddit/stocks/v1/trending?days=1" \
-H "X-API-Key: YOUR_FREE_KEY"Each row in the response has every field the dashboard uses:
{
"ticker": "AAPL",
"company_name": "Apple Inc",
"buzz_score": 79.3, // 0-100 attention score
"mentions": 257, // posts and comments in the window
"sentiment_score": -0.012, // -1 bearish .. +1 bullish
"bullish_pct": 20,
"bearish_pct": 21,
"trend": "rising",
"trend_history": [77.6, 77.4, 80.5, 77.4, 80.3, 78.9, 79.3] // 7-day buzz
}The trend_history array holds seven days of buzz, which the dashboard draws as a sparkline. The bullish_pct and bearish_pct fields carry the sentiment classification, which a plain mention count lacks.
The dashboard, in full
Save this as app.py. It fetches the leaderboard and renders it with inline buzz bars and sparklines. It also adds a drill-down chart that pulls 30 days of history for the ticker you pick.
# app.py -- a live r/wallstreetbets sentiment dashboard
# pip install streamlit requests pandas then: streamlit run app.py
import requests
import pandas as pd
import streamlit as st
API_KEY = "YOUR_FREE_KEY" # get one at adanos.com/register
BASE = "https://api.adanos.com/reddit/stocks/v1"
HEADERS = {"X-API-Key": API_KEY}
st.set_page_config(page_title="WSB Sentiment", layout="wide")
st.title("r/wallstreetbets sentiment dashboard")
@st.cache_data(ttl=900) # data refreshes hourly upstream, so cache 15 min
def trending():
r = requests.get(f"{BASE}/trending", params={"days": 1}, headers=HEADERS, timeout=20)
r.raise_for_status()
return pd.DataFrame(r.json())
@st.cache_data(ttl=900)
def history(ticker):
r = requests.get(f"{BASE}/stock/{ticker}", params={"days": 30}, headers=HEADERS, timeout=20)
r.raise_for_status()
return pd.DataFrame(r.json()["daily_trend"])[::-1] # API returns newest-first
df = trending()
st.caption(f"{len(df)} most-mentioned tickers on Reddit, refreshed hourly")
if df.empty:
st.warning("No trending tickers right now, try again shortly.")
st.stop()
top = df.iloc[0]
a, b, c = st.columns(3)
a.metric("Top ticker", top.ticker, f"{top.mentions} mentions")
b.metric("Buzz score", f"{top.buzz_score:.0f}/100", top.trend)
c.metric("Bull vs bear", f"{top.bullish_pct}% / {top.bearish_pct}%")
st.subheader("Trending leaderboard")
st.dataframe(
df[["ticker", "mentions", "buzz_score", "sentiment_score",
"bullish_pct", "bearish_pct", "trend_history"]],
hide_index=True, use_container_width=True,
column_config={
"buzz_score": st.column_config.ProgressColumn("Buzz", min_value=0, max_value=100, format="%.0f"),
"sentiment_score": st.column_config.NumberColumn("Sentiment", format="%.2f"),
"trend_history": st.column_config.LineChartColumn("7-day buzz"),
},
)
st.subheader("Drill into a ticker")
pick = st.selectbox("Ticker", df.ticker)
h = history(pick)
st.line_chart(h.set_index("date")[["buzz_score", "mentions"]])The two @st.cache_data decorators hold each response for fifteen minutes. Switching between tickers then does not spend a request on every click. On the free tier that keeps a personal dashboard inside the monthly quota.
Run it
One command opens the dashboard in your browser:
streamlit run app.pyYou get three metrics for the top ticker and a sortable leaderboard with a buzz bar and a seven-day sparkline on every row. You also get a drill-down that charts 30 days of buzz and mentions for the ticker you select. The numbers update by themselves because the upstream data refreshes hourly and the cache expires after fifteen minutes.
Going further
The same code extends in a few directions:
- Alerts. Drop Streamlit and run the
trending()call on a cron, then post to Slack or email when a ticker crosses a buzz or bullish threshold. - More sources. The same key works on the X, news and Polymarket endpoints. Swap the base path and the response shape is identical, so the code barely changes.
- No code at all. If you only want the numbers in a terminal, the Finance Sentiment CLI wraps the same API.
If you are weighing this build against a free mention tracker, the ApeWisdom alternatives rundown covers when a scored API is worth it and when a free dashboard is enough.
FAQ
Do I need to scrape Reddit or train an NLP model for this?
No. The trending endpoint returns the most-mentioned tickers already scored, with a buzz score, mention count, bullish and bearish percentages and a seven-day history. You skip the scraping, the rate-limit juggling and the work of building and tuning a finance sentiment model. The dashboard is one HTTP call plus Streamlit for the UI.
Is there a free tier I can build this on?
Yes. The free Adanos tier gives 250 requests per month with no card required. That is enough for a personal dashboard that caches results. The trending call covers the whole leaderboard in one request. The per-ticker history costs one more.
Can I add X, news or Polymarket to the same dashboard?
Yes. The same key works across the Reddit, X, news and Polymarket endpoints. Swap the base path, for example x/stocks/v1 instead of reddit/stocks/v1. The response shape is the same.
Can I use this dashboard commercially?
A personal or internal dashboard is fine on any tier. Redistributing the data or shipping it in a commercial product needs the Professional tier, which grants commercial-use rights.