Update stock_stats.rb to reflect interface changes