DEV Community

Igor Ganapolsky
Igor Ganapolsky

Posted on

AI Trading: Day 84 - 6 Lessons Learned (January 20, 2026)

Day 84/90 - Tuesday, January 20, 2026

Today was a wake-up call. Two critical issues surfaced that could have derailed our entire trading operation. Here's what went wrong and how we're fixing it.

6 lessons learned today (4 critical, 1 high priority)

Trading Crisis - System Stuck for 7 Days

-

CI Failure Due to Legacy SOFI Position

  1. CI failed at 15:41 UTC with test test_positions_are_spy_only failing

System Blocked But No Auto-Cleanup Mechanism

The trading system correctly blocked new trades due to 30% risk exposure (3 spreads when max is 1), but there was NO automated mechanism to close excess positions. Result: 0 trades on Jan 20, 2026

SOFI PDT Crisis - SPY ONLY Violation

A SOFI short put position (SOFI260213P00032000) was opened at 14:35 UTC, violating the "SPY ONLY" directive in CLAUDE.md. The position is now -$150 unrealized and cannot be closed until tomorrow due t

PDT Protection Blocks SOFI Position Close

SOFI260213P00032000 (short put) cannot be closed due to PDT (Pattern Day Trading) protection.


Tech Stack Behind the Scenes

Our AI trading system uses:

  • Claude Opus 4.5 - Primary reasoning engine for trade decisions
  • OpenRouter - Cost-optimized LLM gateway (DeepSeek, Mistral, Kimi)
  • Vertex AI RAG - Cloud semantic search with 768D embeddings
  • Gemini 2.0 Flash - Retrieval-augmented generation
  • MCP Protocol - Standardized tool integration layer

Every lesson is stored in our RAG corpus, enabling the system to learn from past mistakes and improve continuously.

Full Tech Stack Documentation


Auto-generated from our AI Trading System's RAG knowledge base.

Follow our journey: AI Trading Journey on GitHub

Top comments (0)