示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
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)
示例#5
0
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)
示例#6
0
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)
示例#7
0
def debet(code):
    stock = ds.get_stock_info(current_user,code)
    return render_template('stock/debet.html', title='负债-'+stock.name, stock=stock,code=code)
示例#8
0
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)
示例#9
0
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)
示例#10
0
def debet(code):
    stock = ds.get_stock_info(current_user, code)
    return render_template('stock/debet.html',
                           title='负债-' + stock.name,
                           stock=stock,
                           code=code)
示例#11
0
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)
示例#12
0
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)