Stock Trader. An AI agent that learns to buy and sell stocks by practicing on real market history.

github.com/Zaid2044/rl-stock-trader

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

June 2025
  • docs: create final project README
  • feat: add evaluation loop for the trained agent
  • fix: update step method to return 5 values for new gym API
  • fix: update reset method to return obs and info dict
  • fix: update reset method signature to accept seed and options
  • fix: update training call to use model.learn() instead of model.train()
  • feat: implement PPO agent training loop with stable-baselines3
  • fix: resolve ambiguous truth value error by extracting item from Series
  • test: add random action loop to test environment logic
  • feat: implement core trading logic in the step function
  • feat: implement portfolio state management in environment
  • feat: implement _next_observation to provide market data
  • fix: update import to use gymnasium aliased as gym
  • feat: implement data download pipeline and initialize environment
  • feat: create skeleton for custom StockTradingEnv
  • feat: add stable-baselines3, pandas, and yfinance
  • build: setup .gitignore and create virtual environment