| | |
| | | params = data_json["data"] |
| | | ctype = params.get("ctype") |
| | | trade_sell_types = {"get_current_l1_codes", "get_positions", "get_l2_deal_price", |
| | | "buy_cb_for_commission", "sell_cb_for_commission", "get_deal_queue"} |
| | | "buy_cb_for_commission", "sell_cb_for_commission", "get_deal_queue", "auto_cancel_sell_mode"} |
| | | if ctype in trade_sell_types: |
| | | result = hosting_api_util.common_request(params, |
| | | client_type=socket_manager.ClientSocketManager.CLIENT_TYPE_TRADE_SELL) |
| | |
| | | fdata = [] |
| | | try: |
| | | # 获取当前涨停比例 |
| | | rate_results_dict = CodesLimitRateManager.get_price_rates(set([r[0] for r in fresults])) |
| | | rate_results_dict = global_data_cache_util.huaxin_subscript_codes_rate |
| | | for r in fresults: |
| | | fdata.append( |
| | | (r[0], r[1], rate_results_dict.get(r[0]) if r[0] in rate_results_dict else 0, |