--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.5: /usr/bin/python
Sun Aug 18 03:00:22 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 ()
    993 
    994 # get the open price
=>  995 openPrice = float(fiveMinsData[symbol]['open'])
    996 
    997 # get the most-recent timestamp
openPrice undefined, builtin float = <type 'float'>, fiveMinsData = {u'.dji': {u'5mins': {u'09:30': 0.51, u'09:35': 0.8, u'09:40': 0.79, u'09:45': 0.64, u'09:50': 0.6, u'09:55': 0.59, u'10:00': 0.52, u'10:05': 0.6, u'10:10': 0.56, u'10:15': 0.66, ...}, u'exchange': None, u'high': 25929.6504, u'industry': None, u'low': 25678.1699, u'marketCap': 0, u'name': u'DOW JONES', u'open': 25678.1699, u'previousClose': 25579.3906, u'sector': None, ...}, u'.inx': {u'5mins': {u'09:30': 0.63, u'09:35': 0.92, u'09:40': 0.89, u'09:45': 0.81, u'09:50': 0.8, u'09:55': 0.83, u'10:00': 0.77, u'10:05': 0.88, u'10:10': 0.82, u'10:15': 0.89, ...}, u'exchange': None, u'high': 2893.6299, u'industry': None, u'low': 2864.74, u'marketCap': 0, u'name': u'S&P 500', u'open': 2864.74, u'previousClose': 2847.6001, u'sector': None, ...}, u'.ixic': {u'5mins': {u'09:30': 0.82, u'09:35': 1.06, u'09:40': 0.99, u'09:45': 1.02, u'09:50': 0.98, u'09:55': 1.09, u'10:00': 1.04, u'10:05': 1.16, u'10:10': 1.04, u'10:15': 1.08, ...}, u'exchange': None, u'high': 7907.5161, u'industry': None, u'low': 7828.353, u'marketCap': 0, u'name': u'NASDAQ', u'open': 7828.353, u'previousClose': 7766.6201, u'sector': None, ...}, u'42s top10': {u'5mins': {u'09:30': 0.0, u'09:35': 0.0, u'09:40': 0.0, u'09:45': 0.6660000000000001, u'09:50': 1.261, u'09:55': 1.0739999999999998, u'10:00': 1.0430000000000001, u'10:05': 0.9440000000000001, u'10:10': 1.1320000000000001, u'10:15': 1.236, ...}, u'marketCap': 875590762332.0}, u'42s top42': {u'5mins': {u'09:30': 0.0, u'09:35': 0.0, u'09:40': 0.0, u'09:45': 0.6385714285714285, u'09:50': 1.0450000000000002, u'09:55': 1.0402380952380952, u'10:00': 1.0414285714285714, u'10:05': 0.9709523809523809, u'10:10': 1.0754761904761905, u'10:15': 1.1735714285714287, ...}, u'marketCap': 2504354022086.0}, u'a': {u'5mins': {u'09:30': 0.0, u'09:35': 0.0, u'09:40': 0.0, u'09:45': 0.0, u'09:50': 0.3, u'09:55': -0.33, u'10:00': -0.45, u'10:05': -0.11, u'10:10': 0.37, u'10:15': 0.79, ...}, u'exchange': u'nyse', u'high': 71.18, u'industry': u'biotechnology laboratory analytical instruments', u'low': 68.96, u'marketCap': 20724498640, u'name': u'Agilent Technologies, Inc.', u'open': 69.9, u'previousClose': 69.59, u'sector': u'health care', ...}, u'aa': {u'5mins': {u'09:30': 0.0, u'09:35': 0.0, u'09:40': 0.0, u'09:45': 0.77, u'09:50': 1.42, u'09:55': 1.77, u'10:00': 1.98, u'10:05': 1.98, u'10:10': 2.42, u'10:15': 2.25, ...}, u'exchange': u'nyse', u'high': 17.63, u'industry': u'aluminum', u'low': 17.04, u'marketCap': 3247618454, u'name': u'Alcoa Corporation', u'open': 17.04, u'previousClose': 16.92, u'sector': u'basic industries', ...}, u'aaba': {u'5mins': {u'09:30': 0.0, u'09:35': 0.0, u'09:40': 0.0, u'09:45': 0.14, u'09:50': 0.06, u'09:55': -0.01, u'10:00': 0.01, u'10:05': -0.03, u'10:10': 0.01, u'10:15': 0.01, ...}, u'exchange': u'nasdaq', u'high': 70.035, u'industry': u'internet software services', u'low': 69.815, u'marketCap': 36321355054, u'name': u'Altaba Inc.', u'open': 69.99, u'previousClose': 69.9, u'sector': u'technology', ...}, u'aac': {u'5mins': {u'09:30': 0.0, u'09:35': 0.0, u'09:40': 0.0, u'09:45': 0.0, u'09:50': 5.15, u'09:55': 6.62, u'10:00': -1.42, u'10:05': 0.16, u'10:10': -3.78, u'10:15': -3.78, ...}, u'exchange': u'nyse', u'high': 0.6634, u'industry': u'health care facilities', u'low': 0.55, u'marketCap': 18223917, u'name': u'AAC Holdings, Inc.', u'open': 0.65, u'previousClose': 0.6189, u'sector': u'health care', ...}, u'aal': {u'5mins': {u'09:30': 0.0, u'09:35': 0.0, u'09:40': 0.0, u'09:45': 0.63, u'09:50': 1.02, u'09:55': 0.77, u'10:00': 0.79, u'10:05': 0.41, u'10:10': 0.55, u'10:15': 0.43, ...}, u'exchange': u'nasdaq', u'high': 26.05, u'industry': u'air freight delivery services', u'low': 25.39, u'marketCap': 11621181529, u'name': u'American Airlines Group, Inc.', u'open': 25.62, u'previousClose': 25.41, u'sector': u'transportation', ...}, ...}, symbol = 'nsu'

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