def getData(self, params):
    dfs = pickle.load(open('stocks.pkl', 'rb'))
    ticker = params['ticker']
    return dfs[ticker]
def getData(self, params):
    dfs = pickle.load(open('stocks.pkl', 'rb'))
    ticker = params['ticker']
    return dfs[ticker]