Example #1
0
def trading():
    real_open_orders, simulated_open_orders = get_open_orders()
    return render_template('trading.html',
                           real_open_orders=real_open_orders,
                           simulated_open_orders=simulated_open_orders,
                           watched_symbols=get_watched_symbols(),
                           pairs_with_status=get_currencies_with_status())
Example #2
0
def home():
    if request.args:
        accepted = request.args.get("accept_terms") == "True"
        accept_terms(accepted)
    if accepted_terms():
        in_backtesting = get_in_backtesting_mode()
        return render_template('index.html',
                               watched_symbols=get_watched_symbols(),
                               backtesting_mode=in_backtesting)
    else:
        return redirect("/terms")
Example #3
0
def home():
    in_backtesting = get_in_backtesting_mode()
    return render_template('index.html',
                           watched_symbols=get_watched_symbols(),
                           backtesting_mode=in_backtesting)