option('force') ?? false; // get all symbols from market data $holdings = Holding::where('quantity', '>', 0) ->select(['symbol']) ->distinct() ->get(); foreach ($holdings as $holding) { $this->line('Refreshing ' . $holding->symbol); MarketData::getMarketData($holding->symbol, $force); } } }