<?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: Mr hustle</title>
    <description>The latest articles on DEV Community by Mr hustle (@mrhustlex).</description>
    <link>https://dev.to/mrhustlex</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%2F4025542%2Fcfbea756-ec9b-4299-977e-40eff6a965fa.png</url>
      <title>DEV Community: Mr hustle</title>
      <link>https://dev.to/mrhustlex</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrhustlex"/>
    <language>en</language>
    <item>
      <title>Building a Local-First, AI-Agent Powered Trading Workstation in Docker 🚀</title>
      <dc:creator>Mr hustle</dc:creator>
      <pubDate>Sat, 11 Jul 2026 20:38:51 +0000</pubDate>
      <link>https://dev.to/mrhustlex/i-built-tradingspy-a-completely-local-privacy-first-ai-trading-research-assistant-backtester-15kj</link>
      <guid>https://dev.to/mrhustlex/i-built-tradingspy-a-completely-local-privacy-first-ai-trading-research-assistant-backtester-15kj</guid>
      <description>&lt;p&gt;Like many devs who double as market hobbyists, my weekends usually look like a chaotic mess of Jupyter notebooks, multiple stock data APIs, and half-broken custom scripts trying to backtest a simple idea.&lt;/p&gt;

&lt;p&gt;A few months ago, I hit a wall. I realized I was writing more infrastructure plumbing than actual strategy code. When looking at commercial alternatives, I found they either cost a fortune, forced me into a proprietary cloud, or raised massive data privacy red flags regarding harvesting my strategy ideas.&lt;/p&gt;

&lt;p&gt;So, I built my own ultimate sandbox: TradingSpy. It's a local-first AI trading research workstation running entirely in Docker, and I've just open-sourced it!&lt;/p&gt;

&lt;p&gt;👉 Check out the repository: &lt;a href="https://github.com/mrhustlex/TradingSpy-TradingAgentService" rel="noopener noreferrer"&gt;https://github.com/mrhustlex/TradingSpy-TradingAgentService&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What exactly is TradingSpy?&lt;br&gt;
It is not a trading bot and it does not connect to live brokerages to place trades. Instead, it's an end-to-end sandbox environment for strategy generation, market intelligence gathering, and automated backtesting.&lt;/p&gt;

&lt;p&gt;The Core Tech Stack &amp;amp; Key Features&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Loop-Engineering AI Agents 🤖&lt;br&gt;
This is where it gets fun. Instead of just chatting with an LLM, you can assign it a self-correcting goal. For example: "Improve EMA_Trend for TQQQ until it beats the baseline buy-and-hold strategy." The agent will autonomously:&lt;br&gt;
Write the Python code using Backtrader.&lt;br&gt;
Run it through a syntax and runtime validation step.&lt;br&gt;
Execute the backtest against historical candles.&lt;br&gt;
Read the metrics—if it underperforms, it automatically iterates, tweaks the code, and tests again without you having to babysit the terminal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Multi-Provider &amp;amp; Local LLM Ready&lt;br&gt;
Privacy was my #1 priority. You can hook it up to cloud providers like Google AI Studio or OpenRouter, or drop in Ollama (qwen2.5-coder, etc.) to run the entire operation completely offline on your local hardware.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;All-in-One Market Intelligence&lt;br&gt;
No more context switching. It pulls real-time quotes, multi-period sector heatmaps, insider transactions, fundamentals, and even parses academic quantitative papers directly from arXiv into a single UI dashboard.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Developer-First Design&lt;br&gt;
The backend is built with FastAPI and features an OpenAI-compatible API layer (/v1/chat/completions). This means you can easily use TradingSpy as a headless engine to back your own custom automation scripts or external workflows.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Getting Started in 2 Minutes&lt;/p&gt;

&lt;p&gt;As long as you have Docker installed, setting it up locally takes three commands:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/mrhustlex/TradingSpy-TradingAgentService.git" rel="noopener noreferrer"&gt;https://github.com/mrhustlex/TradingSpy-TradingAgentService.git&lt;/a&gt;&lt;br&gt;
cd TradingSpy&lt;br&gt;
cp .env.example .env&lt;/p&gt;

&lt;h1&gt;
  
  
  Pop your LLM keys in .env or configure them later in the UI!
&lt;/h1&gt;

&lt;p&gt;docker compose up -d --build&lt;br&gt;
Once up, your workspace is ready to go:&lt;br&gt;
Frontend App: &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;&lt;br&gt;
Backend API Docs: &lt;a href="http://localhost:8000/docs" rel="noopener noreferrer"&gt;http://localhost:8000/docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why I'm Sharing This&lt;/p&gt;

&lt;p&gt;Right now, I am a solo developer building this purely because it was a tool I desperately needed for my own research. I'm opening it up to the open-source community because I think quantitative tools shouldn't be gated behind massive paywalls or privacy trade-offs.&lt;/p&gt;

&lt;p&gt;Disclaimer: This is experimental software built strictly for educational research and coding exploration, not financial advice.&lt;br&gt;
I'd love to hear your thoughts! What local models are you finding work best for Python code generation? What features or data sources should I add next? Drop a comment below or open an issue on GitHub! ⭐️&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
