<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: akshay-bhatnagar-05</title>
    <description>The latest articles on DEV Community by akshay-bhatnagar-05 (@akshaybhatnagar05).</description>
    <link>https://dev.to/akshaybhatnagar05</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4072394%2F7c8051ce-5c94-4bf6-8882-2caf44b78b26.png</url>
      <title>DEV Community: akshay-bhatnagar-05</title>
      <link>https://dev.to/akshaybhatnagar05</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akshaybhatnagar05"/>
    <language>en</language>
    <item>
      <title>I built an automated system that tracks presidential stock mentions and follows the price for 4 days</title>
      <dc:creator>akshay-bhatnagar-05</dc:creator>
      <pubDate>Tue, 11 Aug 2026 06:04:15 +0000</pubDate>
      <link>https://dev.to/akshaybhatnagar05/i-built-an-automated-system-that-tracks-presidential-stock-mentions-and-follows-the-price-for-4-days-3ohi</link>
      <guid>https://dev.to/akshaybhatnagar05/i-built-an-automated-system-that-tracks-presidential-stock-mentions-and-follows-the-price-for-4-days-3ohi</guid>
      <description>&lt;p&gt;Ever notice how a single offhand comment from a public figure can move a stock within hours? I wanted to actually track that — not just react to headlines after the fact, but systematically catch mentions and see what happens to the price next.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Wire Desk&lt;/strong&gt;: a small automated pipeline that watches for statements referencing specific companies or sectors, classifies them as &lt;em&gt;direct&lt;/em&gt; (his own words, via Truth Social/White House) vs. &lt;em&gt;indirect&lt;/em&gt; (news coverage reporting on him), then follows the stock's price for four trading days so I can judge the reaction myself instead of trusting a headline.&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;Live site:&lt;/strong&gt; &lt;a href="https://akshay-bhatnagar-05.github.io/trump-stock-tracker/" rel="noopener noreferrer"&gt;https://akshay-bhatnagar-05.github.io/trump-stock-tracker/&lt;/a&gt;&lt;br&gt;
🔗 &lt;strong&gt;Source:&lt;/strong&gt; &lt;a href="https://github.com/akshay-bhatnagar-05/trump-stock-tracker" rel="noopener noreferrer"&gt;https://github.com/akshay-bhatnagar-05/trump-stock-tracker&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Three sources monitored daily&lt;/strong&gt; — Truth Social (via an RSS mirror), official White House press releases, and news wires via NewsAPI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyword matching&lt;/strong&gt; against a watchlist of companies/tickers I care about&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Direct vs. indirect tagging&lt;/strong&gt; — this turned out to be the most useful design decision. A statement &lt;em&gt;from&lt;/em&gt; someone carries very different weight than a journalist writing &lt;em&gt;about&lt;/em&gt; them, and treating those the same was the biggest flaw I noticed in similar tools&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4-day price tracking&lt;/strong&gt; via yfinance, so I can see the actual before/after reaction instead of just the headline&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Daily email digest + a live dashboard&lt;/strong&gt;, fully automated via GitHub Actions — the whole thing runs on a schedule with zero manual steps&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python (requests, yfinance, feedparser) for the detection/tracking logic&lt;/li&gt;
&lt;li&gt;GitHub Actions for the daily cron job&lt;/li&gt;
&lt;li&gt;A static HTML/CSS/JS dashboard, reading from a JSON file the script regenerates every run&lt;/li&gt;
&lt;li&gt;GitHub Pages for hosting — the whole thing costs $0 to run&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I deliberately avoided
&lt;/h2&gt;

&lt;p&gt;While researching this, I found an open-source project that brute-forced &lt;strong&gt;31.5 million rule combinations&lt;/strong&gt; against historical posting data to find a "61.3% hit rate." Their own README honestly flags the risk: testing that many combinations basically guarantees some will look great by pure chance (the classic multiple-comparisons/data-snooping problem). I wanted the opposite — simple, explainable logic over a big number that might just be noise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest caveats
&lt;/h2&gt;

&lt;p&gt;This is a research/awareness tool, not a trading signal. By the time a mention is caught here, it's already public, and a "confirmed" multi-day trend is usually already priced in. It's useful for staying informed fast — not for predicting anything.&lt;/p&gt;

&lt;p&gt;Would love feedback on the architecture, or if anyone's built something similar with different source coverage. Repo's open, feel free to fork it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Tags: #python #githubactions #webdev #opensource #finance&lt;/em&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>github</category>
      <category>python</category>
    </item>
  </channel>
</rss>
