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'])
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