for ticker in Stocks: # Import Data temp_T = Ticker(ticker) ## Financial Data tempFinData = temp_T.financial_data ## Index Trend tempIndexTrend = temp_T.index_trend ## Key Stats tempKeyStats = temp_T.key_stats ## Summary Detail tempSummDet = temp_T.summary_detail ## Summary Profile tempSummProf = temp_T.summary_profile ## Cashflow temp_cashFlow = temp_T.cash_flow(trailing=False) # Process Data ## Financial Data - Current Price, DE Ratio, Total Cash, Total Debt temp_finData = tempFinData[ticker] temp_currPrice = temp_finData['currentPrice'] ### temp_debtEquity = temp_finData['debtToEquity'] temp_totalCash = temp_finData['totalCash'] temp_totalDebt = temp_finData['totalDebt'] ## Index Trend - 5yr Growth temp_indexTrend = tempIndexTrend[ticker] temp_estIndTrnd = temp_indexTrend['estimates'] temp_5YrGrowth = temp_estIndTrnd[4] temp_growth = temp_5YrGrowth['growth'] ## Key Stats - PB Ratio, PEG Ratio, Enterprise Value temp_keyStats = tempKeyStats[ticker] temp_priceBook = temp_keyStats['priceToBook'] ### temp_peg = temp_keyStats['pegRatio'] temp_enterVal = temp_keyStats['enterpriseValue'] ## Summary Detail - PE Ratio, PS Ratio, Market Cap temp_summDet = tempSummDet[ticker] temp_priceEquity = temp_summDet['trailingPE'] temp_priceSales = temp_summDet['priceToSalesTrailing12Months'] temp_marketCap = temp_summDet['marketCap'] ## Summary Profile - Sector, Industry temp_summProf = tempSummProf[ticker] temp_sector = temp_summProf['sector'] temp_industry = temp_summProf['industry'] ## Cashflow - Free Cashflow temp_CF_Sh = temp_cashFlow.shape temp_CF_LR = temp_CF_Sh[0] - 1 temp_freeCashflow = temp_cashFlow['FreeCashFlow'][temp_CF_LR] # Add Data to Dictionary dow_currPrice[ticker] = temp_currPrice dow_sector[ticker] = temp_sector dow_industry[ticker] = temp_industry dow_priceBook[ticker] = temp_priceBook dow_priceEquity[ticker] = temp_priceEquity ### dow_peg[ticker] = temp_peg dow_priceSales[ticker] = temp_priceSales ### dow_debtEquity[ticker] = temp_debtEquity dow_growth[ticker] = temp_growth dow_freeCashFlow[ticker] = temp_freeCashflow dow_totalDebt[ticker] = temp_totalDebt dow_totalCash[ticker] = temp_totalCash dow_marketCap[ticker] = temp_marketCap dow_enterVal[ticker] = temp_enterVal