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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)