示例#1
0
def lookup():
    if request.method == 'POST':
        stock_symbol_lookup = request.form['stock_symbol_lookup']
        stock_info = transactions.get_info(stock_symbol_lookup)
    return render_template('index.html',
                           balance=session['balance'],
                           inventory=session['inventory'],
                           selected=stock_info)
示例#2
0
def stocks(stock):
    return jsonify(transactions.get_info(stock))
示例#3
0
def viewstock(stock):
    stock_info = transactions.get_info(stock)
    return render_template('index.html', balance=session['balance'], inventory=session['inventory'], selected=stock_info)
示例#4
0
def lookup():
    if request.method == 'POST':
        stock_symbol_lookup = request.form['stock_symbol_lookup']
        stock_info = transactions.get_info(stock_symbol_lookup)
    return render_template('index.html', balance=session['balance'], inventory=session['inventory'], selected=stock_info)
示例#5
0
def stocks(stock):
    return jsonify(transactions.get_info(stock))
示例#6
0
def viewstock(stock):
    stock_info = transactions.get_info(stock)
    return render_template('index.html',
                           balance=session['balance'],
                           inventory=session['inventory'],
                           selected=stock_info)