def valuation(code): stock = ds.get_stock_info(current_user, code) #price = stock.current_price return render_template('stock/valuation.html', title='估值-' + stock.name, code=code, stock=stock)
def report(code): stock = ds.get_stock_info(current_user,code) #price = stock.current_price #app.logger.info('stock current price is:'+stock.current_price) dateTime = pd.date_range(start='20001231', periods=15, freq='3M').to_series() date = [pd.to_datetime(str(value)).strftime('%Y-%m-%d') for value in dateTime] return render_template('stock/report.html', title='财报-'+stock.name, mydate=date,code=code, stock=stock)
def info(code): mynews = [] stock = ds.get_stock_info(current_user,code) if not current_user.is_anonymous: uid = current_user.id mynews = ds.getMyStockNews(uid,code[2:]) return render_template('stock/info.html', title='资讯-'+stock.name, stock=stock,code=code, news=mynews)
def info(code): mynews = [] stock = ds.get_stock_info(current_user, code) if not current_user.is_anonymous: uid = current_user.id mynews = ds.getMyStockNews(uid, code[2:]) return render_template('stock/info.html', title='资讯-' + stock.name, stock=stock, code=code, news=mynews)
def report(code): stock = ds.get_stock_info(current_user, code) #price = stock.current_price #app.logger.info('stock current price is:'+stock.current_price) dateTime = pd.date_range(start='20001231', periods=15, freq='3M').to_series() date = [ pd.to_datetime(str(value)).strftime('%Y-%m-%d') for value in dateTime ] return render_template('stock/report.html', title='财报-' + stock.name, mydate=date, code=code, stock=stock)
def valuation(code): stock = ds.get_stock_info(current_user,code) #price = stock.current_price return render_template('stock/valuation.html', title='估值-'+stock.name, code=code, stock=stock)
def debet(code): stock = ds.get_stock_info(current_user,code) return render_template('stock/debet.html', title='负债-'+stock.name, stock=stock,code=code)
def holder(code): stock = ds.get_stock_info(current_user,code) return render_template('stock/holder.html', title="股东-%s"%(stock.name), stock=stock,code=code)
def cash(code): stock = ds.get_stock_info(current_user,code) return render_template('stock/cash.html', title='现金-%s'%stock.name, stock=stock,code=code)
def debet(code): stock = ds.get_stock_info(current_user, code) return render_template('stock/debet.html', title='负债-' + stock.name, stock=stock, code=code)
def holder(code): stock = ds.get_stock_info(current_user, code) return render_template('stock/holder.html', title="股东-%s" % (stock.name), stock=stock, code=code)
def cash(code): stock = ds.get_stock_info(current_user, code) return render_template('stock/cash.html', title='现金-%s' % stock.name, stock=stock, code=code)