Exemplo n.º 1
0
def shape_matching_sorting():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'stock_recommendation/stock_sorting/rule_statistics_sorting/shape_matching_sorting.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 2
0
def similarity_eps_sorting():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'stock_recommendation/stock_sorting/stock_assessment_sorting/similarity_eps_sorting.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 3
0
def long_term_trend_sorting():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'stock_recommendation/stock_sorting/trend_prediction_sorting/long_term_trend_sorting.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 4
0
def main_ability():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'stock_recommendation/stock_sorting/money_flow_sorting/main_ability.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 5
0
def fluctuation_combination_sorting():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'stock_recommendation/stock_sorting/rule_statistics_sorting/fluctuation_combination_sorting.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 6
0
def panorama_capital_flow():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'industry_analysis/dynamic_panorama_the_venue/panorama_capital_flow.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 7
0
def panorama_market_value_distribution():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'industry_analysis/dynamic_panorama_the_venue/panorama_market_value_distribution.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 8
0
def panorama_active_trading():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template(
        'industry_analysis/dynamic_panorama_the_venue/panorama_active_trading.html',
        date=date_validated,
        date_list=date_list)
Exemplo n.º 9
0
def rule_statistics():
    code = request.args.get('code')
    date = request.args.get('date')
    if code is None:
        return redirect(url_for('stock_prediction.rule_statistics', code='000001.SZ'))
    else:
        result = Stock_Basic.query.filter_by(ts_code=code).first()
        if result is None:
            abort(404)
        else:
            date_validated, date_list = date_validation(date)
            stock = {'ts_code': result.ts_code, 'name': result.name, 'symbol': result.symbol}
            return render_template('stock_prediction/rule_statistics.html', stock=stock, date=date_validated,
                                   date_list=date_list)
Exemplo n.º 10
0
def index_analysis():
    code = request.args.get('code')
    date = request.args.get('date')
    if code is None:
        return redirect(
            url_for('stock_prediction.index_analysis', code='000001.SH'))
    else:
        result = Index_Basic.query.filter_by(ts_code=code).first()
        if result is None:
            abort(404)
        else:
            date_validated, date_list = date_validation(date)
            index = {'ts_code': result.ts_code, 'name': result.name}
            return render_template('index_prediction/index_analysis.html',
                                   stock=index,
                                   date=date_validated,
                                   date_list=date_list)
Exemplo n.º 11
0
def industry_mean_sorting():
    date = request.args.get('date')
    mode = request.args.get('mode')
    if mode is None:
        mode = '0'
    date_validated, date_list = date_validation(date)
    if mode == '0':
        return render_template(
            'stock_recommendation/stock_sorting/stock_assessment_sorting/industry_csrc_mean_sorting.html',
            date=date_validated,
            date_list=date_list)
    elif mode == '1':
        return render_template(
            'stock_recommendation/stock_sorting/stock_assessment_sorting/industry_sw_mean_sorting.html',
            date=date_validated,
            date_list=date_list)
    else:
        abort(400)
Exemplo n.º 12
0
def trading_point_sorting():
    date = request.args.get('date')
    mode = request.args.get('mode')
    if mode is None:
        mode = '0'
    date_validated, date_list = date_validation(date)
    if mode == '0':
        return render_template(
            'stock_recommendation/stock_sorting/trend_prediction_sorting/trading_point_sorting_aggressive.html',
            date=date_validated,
            date_list=date_list)
    elif mode == '1':
        return render_template(
            'stock_recommendation/stock_sorting/trend_prediction_sorting/trading_point_sorting_steady.html',
            date=date_validated,
            date_list=date_list)
    elif mode == '2':
        return render_template(
            'stock_recommendation/stock_sorting/trend_prediction_sorting/trading_point_sorting_comprehensive.html',
            date=date_validated,
            date_list=date_list)
    else:
        abort(400)
Exemplo n.º 13
0
def index_home():
    date = request.args.get('date')
    date_validated, date_list = date_validation(date)
    return render_template('index_prediction/index_home.html',
                           date=date_validated,
                           date_list=date_list)