Example #1
0
def getGlobalArdyData(ticker=None):
    if not ticker:
        return 'Error'
    ticker = ticker.replace('_', ' ')
    ticker = tickPredict.parse(ticker)
    a = getMarketData.main(ticker)
    b = json.loads(a)
    return str(b['price'])
Example #2
0
def getData(ticker=None):
    if not ticker:
	return '{"error":"Empty Ticker"}'
    #if (name === None) return '{"error":"No Ticker Provided"}'
    ticker = ticker.replace('_', ' ')
    ticker = tickPredict.parse(ticker)
    a = getMarketData.main(ticker)
    return a