<?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: Anupam Jain</title>
    <description>The latest articles on DEV Community by Anupam Jain (@anupam99jain).</description>
    <link>https://dev.to/anupam99jain</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%2F4151566%2F45414e2e-c94a-4d9e-9ca3-2fcf679b3945.jpg</url>
      <title>DEV Community: Anupam Jain</title>
      <link>https://dev.to/anupam99jain</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anupam99jain"/>
    <language>en</language>
    <item>
      <title>LLM Paper Trader</title>
      <dc:creator>Anupam Jain</dc:creator>
      <pubDate>Fri, 02 Oct 2026 05:17:03 +0000</pubDate>
      <link>https://dev.to/anupam99jain/llm-paper-trader-1k95</link>
      <guid>https://dev.to/anupam99jain/llm-paper-trader-1k95</guid>
      <description>&lt;h1&gt;
  
  
  I Built a Small LLM-Powered Paper Trader for a Friend
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built a small paper trading system for a friend who is interested in financial markets and wanted a way to experiment with trading ideas without putting real money at risk.&lt;/p&gt;

&lt;p&gt;The idea was to combine some traditional technical indicators with an open-weight language model and see how it would perform as a simple decision-making layer.&lt;/p&gt;

&lt;p&gt;The system fetches market data, calculates indicators, sends the current market state to the model, and gets a simple BUY, SELL, or HOLD decision. That decision is then executed using virtual money and the portfolio is tracked over time.&lt;/p&gt;

&lt;p&gt;Everything is simulated, so there is no real money involved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/anupam99jain/paper-trader" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project can be run locally and the trading loop prints the current market information, the model's decision, and the simulated portfolio state as it runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;The project is open source on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/anupam99jain/paper-trader" rel="noopener noreferrer"&gt;https://github.com/anupam99jain/paper-trader&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code is written in Python and is split into the parts responsible for market data, technical indicators, the trading logic, and the LLM decision-making layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built the project with Python and kept the architecture intentionally simple so that it would be easy to experiment with different indicators and models.&lt;/p&gt;

&lt;p&gt;The trading loop gets the current market data and calculates technical indicators such as the 20-period SMA, 50-period SMA, and 14-period RSI.&lt;/p&gt;

&lt;p&gt;The current market state is then passed to an open-weight language model. For the AI component, I used Qwen 2.5 7B.&lt;/p&gt;

&lt;p&gt;The model is asked to return one of three decisions:&lt;/p&gt;

&lt;p&gt;BUY&lt;/p&gt;

&lt;p&gt;SELL&lt;/p&gt;

&lt;p&gt;HOLD&lt;/p&gt;

&lt;p&gt;The result is passed back to the paper trading engine, which performs the simulated trade and updates the portfolio.&lt;/p&gt;

&lt;p&gt;This is a small project, but I liked the idea of making the AI component replaceable. I can change the model, change the indicators, or change the decision logic without having to redesign the whole system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;For this project, using open-weight AI made experimentation much more interesting.&lt;/p&gt;

&lt;p&gt;Instead of depending completely on a closed API, I can run an open model, change the prompts, swap models, and experiment with the system around it.&lt;/p&gt;

&lt;p&gt;That matters because the goal of this project is not just to get a prediction from an AI model. I wanted to be able to understand the system, change individual parts, and see what happens.&lt;/p&gt;

&lt;p&gt;Open innovation makes that kind of experimentation much more accessible.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;I used an AI coding agent during development and connected the workflow with DevRelay.&lt;/p&gt;

&lt;p&gt;The agent helped me work through parts of the implementation, test ideas, and iterate on the project while I focused on the overall design and behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Paper Trader is intentionally small.&lt;/p&gt;

&lt;p&gt;I built it for a friend who wanted a simple way to explore trading ideas without risking actual money, and it also gave me a fun way to experiment with combining traditional market indicators and open-weight AI.&lt;/p&gt;

&lt;p&gt;The project is available here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/anupam99jain/paper-trader" rel="noopener noreferrer"&gt;https://github.com/anupam99jain/paper-trader&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for checking it out, and happy Hacktoberfest!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
      <category>hacktoberfest</category>
    </item>
  </channel>
</rss>
