<?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: David Kim</title>
    <description>The latest articles on DEV Community by David Kim (@davidkim205).</description>
    <link>https://dev.to/davidkim205</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3860439%2F4d640e3b-a46e-4f21-a024-c28074da70dd.png</url>
      <title>DEV Community: David Kim</title>
      <link>https://dev.to/davidkim205</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/davidkim205"/>
    <language>en</language>
    <item>
      <title>Building an AI that analyzes stocks like Warren Buffett</title>
      <dc:creator>David Kim</dc:creator>
      <pubDate>Sat, 04 Apr 2026 04:59:10 +0000</pubDate>
      <link>https://dev.to/davidkim205/building-an-ai-that-analyzes-stocks-like-warren-buffett-214</link>
      <guid>https://dev.to/davidkim205/building-an-ai-that-analyzes-stocks-like-warren-buffett-214</guid>
      <description>&lt;p&gt;Most financial tools give you data.&lt;/p&gt;

&lt;p&gt;But investors don't make decisions using raw numbers alone — they interpret them through a framework.&lt;/p&gt;

&lt;p&gt;Warren Buffett thinks about moat and intrinsic value.&lt;br&gt;&lt;br&gt;
Ray Dalio thinks about macro cycles.&lt;br&gt;&lt;br&gt;
Charlie Munger thinks about avoiding mistakes.&lt;/p&gt;

&lt;p&gt;So I asked a simple question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if an AI could apply these investment philosophies automatically?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That idea became &lt;strong&gt;Wallstreet-AI&lt;/strong&gt;, an open-source agentic financial analysis system that combines structured data pipelines with LLM reasoning.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="https://github.com/davidkim205/wallstreet-ai" rel="noopener noreferrer"&gt;https://github.com/davidkim205/wallstreet-ai&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  What is Wallstreet-AI?
&lt;/h1&gt;

&lt;p&gt;Wallstreet-AI is an LLM-powered financial analysis assistant that converts natural language questions into structured investment reports.&lt;/p&gt;

&lt;p&gt;Instead of manually gathering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;financial statements&lt;/li&gt;
&lt;li&gt;technical indicators&lt;/li&gt;
&lt;li&gt;earnings summaries&lt;/li&gt;
&lt;li&gt;market news&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;you simply ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What would Warren Buffett think about Apple in a high interest rate environment?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The system builds a full reasoning pipeline and generates a structured report.&lt;/p&gt;




&lt;h1&gt;
  
  
  Key Idea: Persona-driven financial reasoning
&lt;/h1&gt;

&lt;p&gt;Different investors interpret the same data differently.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;Buffett focuses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;business quality&lt;/li&gt;
&lt;li&gt;durable moat&lt;/li&gt;
&lt;li&gt;long-term cash flow&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Dalio focuses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;macro regime changes&lt;/li&gt;
&lt;li&gt;interest rate cycles&lt;/li&gt;
&lt;li&gt;portfolio diversification&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wallstreet-AI lets the same dataset produce multiple interpretations depending on the persona applied.&lt;/p&gt;




&lt;h1&gt;
  
  
  System Architecture
&lt;/h1&gt;

&lt;p&gt;The project is designed as an agent workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Natural language intent parsing&lt;/li&gt;
&lt;li&gt;Tool routing based on analysis type&lt;/li&gt;
&lt;li&gt;Data collection via APIs&lt;/li&gt;
&lt;li&gt;News enrichment using RSS scraping&lt;/li&gt;
&lt;li&gt;LLM synthesis&lt;/li&gt;
&lt;li&gt;Streaming output via SSE&lt;/li&gt;
&lt;li&gt;Structured logging for reproducibility&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Pipeline:&lt;/p&gt;

&lt;p&gt;User Query&lt;br&gt;&lt;br&gt;
→ Intent Parser&lt;br&gt;&lt;br&gt;
→ Tool Router&lt;br&gt;&lt;br&gt;
→ Data Collection&lt;br&gt;&lt;br&gt;
→ LLM Generation&lt;br&gt;&lt;br&gt;
→ Structured Report  &lt;/p&gt;




&lt;h1&gt;
  
  
  Example Question
&lt;/h1&gt;

&lt;p&gt;"What would Warren Buffett think about Microsoft today?"&lt;/p&gt;

&lt;p&gt;The pipeline automatically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;detects ticker&lt;/li&gt;
&lt;li&gt;determines analysis type&lt;/li&gt;
&lt;li&gt;gathers market data&lt;/li&gt;
&lt;li&gt;generates structured reasoning&lt;/li&gt;
&lt;li&gt;streams the output in real time&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Live Demo
&lt;/h1&gt;

&lt;p&gt;You can try it instantly:&lt;/p&gt;

&lt;p&gt;HuggingFace Spaces:&lt;br&gt;
&lt;a href="https://huggingface.co/spaces/davidkim205/wallstreet-ai" rel="noopener noreferrer"&gt;https://huggingface.co/spaces/davidkim205/wallstreet-ai&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google Colab:&lt;br&gt;
&lt;a href="https://colab.research.google.com/drive/13rWqKpAgJMytsztSt_spsws4HPWQZPnc" rel="noopener noreferrer"&gt;https://colab.research.google.com/drive/13rWqKpAgJMytsztSt_spsws4HPWQZPnc&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  Future ideas
&lt;/h1&gt;

&lt;p&gt;Possible extensions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;portfolio optimization personas&lt;/li&gt;
&lt;li&gt;backtesting integration&lt;/li&gt;
&lt;li&gt;vector database memory&lt;/li&gt;
&lt;li&gt;evaluation benchmarks for financial reasoning&lt;/li&gt;
&lt;li&gt;multi-agent debate between investor personas&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Feedback welcome
&lt;/h1&gt;

&lt;p&gt;I would appreciate feedback on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;agent architecture design&lt;/li&gt;
&lt;li&gt;persona prompting approaches&lt;/li&gt;
&lt;li&gt;evaluation methodology for financial reasoning&lt;/li&gt;
&lt;li&gt;additional financial datasets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="https://github.com/davidkim205/wallstreet-ai" rel="noopener noreferrer"&gt;https://github.com/davidkim205/wallstreet-ai&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contributions are welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
