--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.5: /usr/bin/python
Tue Oct 22 04:29:25 2019

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/stocksco/public_html/cgi-bin/symbol.py in ()
   1043 
   1044 # get the open price
=> 1045 openPrice = float(fiveMinsData[symbol]['open'])
   1046 
   1047 # get the most-recent timestamp
openPrice undefined, builtin float = <type 'float'>, fiveMinsData = {u'.dji': {u'5mins': {u'09:30': 0.17, u'09:35': 0.17, u'09:40': 0.17, u'09:45': 0.17, u'09:50': 0.02, u'09:55': 0.06, u'10:00': 0.04, u'10:05': -0.0, u'10:10': 0.02, u'10:15': 0.04, ...}, u'exchange': None, u'high': 26852.6699, u'industry': None, u'low': 26747.6191, u'marketCap': 0, u'name': u'DOW JONES', u'open': 26852.6699, u'previousClose': 26770.1992, u'sector': None, ...}, u'.inx': {u'5mins': {u'09:30': 0.49, u'09:35': 0.49, u'09:40': 0.49, u'09:45': 0.49, u'09:50': 0.41, u'09:55': 0.43, u'10:00': 0.4, u'10:05': 0.37, u'10:10': 0.37, u'10:15': 0.4, ...}, u'exchange': None, u'high': 3007.3301, u'industry': None, u'low': 2995.3501, u'marketCap': 0, u'name': u'S&P 500', u'open': 2996.48, u'previousClose': 2986.2, u'sector': None, ...}, u'.ixic': {u'5mins': {u'09:30': 0.67, u'09:35': 0.67, u'09:40': 0.67, u'09:45': 0.67, u'09:50': 0.51, u'09:55': 0.58, u'10:00': 0.52, u'10:05': 0.43, u'10:10': 0.42, u'10:15': 0.48, ...}, u'exchange': None, u'high': 8164.1372, u'industry': None, u'low': 8117.2607, u'marketCap': 0, u'name': u'NASDAQ', u'open': 8137.4209, u'previousClose': 8089.54, u'sector': None, ...}, u'42s top10': {u'5mins': {u'09:30': 0.6529999999999999, u'09:35': 0.844, u'09:40': 0.788, u'09:45': 0.808, u'09:50': 0.609, u'09:55': 0.4960000000000001, u'10:00': 0.5990000000000001, u'10:05': 0.6309999999999999, u'10:10': 0.6829999999999998, u'10:15': 0.668, ...}, u'marketCap': 69991292160.0}, u'42s top42': {u'5mins': {u'09:30': 0.673095238095238, u'09:35': 0.9880952380952381, u'09:40': 1.0707142857142857, u'09:45': 1.001904761904762, u'09:50': 0.864047619047619, u'09:55': 0.8919047619047618, u'10:00': 0.8854761904761903, u'10:05': 0.7833333333333333, u'10:10': 0.8078571428571426, u'10:15': 0.815714285714286, ...}, u'marketCap': 2145600721120.0}, u'a': {u'5mins': {u'09:30': 0.48, u'09:35': 0.4, u'09:40': 0.91, u'09:45': 0.59, u'09:50': 0.55, u'09:55': 0.56, u'10:00': 0.59, u'10:05': 0.54, u'10:10': 0.72, u'10:15': 0.74, ...}, u'exchange': u'nyse', u'high': 75.51, u'industry': u'biotechnology laboratory analytical instruments', u'low': 74.69, u'marketCap': 23077027840.0, u'name': u'Agilent Technologies, Inc.', u'open': 74.88, u'previousClose': 74.57, u'sector': u'health care', ...}, u'aa': {u'5mins': {u'09:30': 0.42, u'09:35': -0.41, u'09:40': 0.05, u'09:45': -1.44, u'09:50': -2.18, u'09:55': -1.86, u'10:00': -2.69, u'10:05': -3.76, u'10:10': -3.02, u'10:15': -3.13, ...}, u'exchange': u'nyse', u'high': 21.66, u'industry': u'aluminum', u'low': 20.45, u'marketCap': 3996897792.0, u'name': u'Alcoa Corporation', u'open': 21.57, u'previousClose': 21.54, u'sector': u'basic industries', ...}, u'aac': {u'5mins': {u'09:30': 0.76, u'09:35': 1.06, u'09:40': 2.32, u'09:45': -5.76, u'09:50': -5.76, u'09:55': 1.06, u'10:00': -5.76, u'10:05': -1.06, u'10:10': -1.06, u'10:15': -3.97, ...}, u'exchange': u'nyse', u'high': 0.405, u'industry': u'health care facilities', u'low': 0.3715, u'marketCap': 9981838.0, u'name': u'AAC Holdings, Inc.', u'open': 0.3988, u'previousClose': 0.3958, u'sector': u'health care', ...}, u'aal': {u'5mins': {u'09:30': 0.78, u'09:35': 1.24, u'09:40': 1.81, u'09:45': 1.74, u'09:50': 2.13, u'09:55': 2.13, u'10:00': 1.98, u'10:05': 2.13, u'10:10': 2.32, u'10:15': 2.2, ...}, u'exchange': u'nasdaq', u'high': 28.91, u'industry': u'air freight delivery services', u'low': 28.425, u'marketCap': 12565548032.0, u'name': u'American Airlines Group, Inc.', u'open': 28.51, u'previousClose': 28.22, u'sector': u'transportation', ...}, u'aamc': {u'5mins': {u'09:30': 4.32, u'09:35': 4.32, u'09:40': 4.32, u'09:45': 4.32, u'09:50': 4.32, u'09:55': 4.32, u'10:00': 3.42, u'10:05': 3.42, u'10:10': 3.42, u'10:15': 3.23, ...}, u'exchange': u'amex', u'high': 16.9309, u'industry': u'real estate services', u'low': 14.7675, u'marketCap': 24656310.0, u'name': u'Altisource Asset Management Corp Com (CV EM)', u'open': 16.17, u'previousClose': 15.4999, u'sector': u'finance', ...}, ...}, symbol = 'type'

<type 'exceptions.KeyError'>: 'type'
      args = ('type',)
      message = 'type'