public function getAllMetrics($omitCondition)
 {
     return StockMetrics::with('stock')->where('stock_code', '!=', 'null')->omitOutliers($omitCondition)->get();
 }
 public function stocks()
 {
     $stocks = StockMetrics::with('stock')->orderBy('stock_metrics.market_cap', 'DESC');
     return \Datatables::of($stocks)->make(true);
 }