| | |
| | | # if deal_big_order_info and deal_big_order_info[5] > 5000e4: |
| | | # temp_rate = round(deal_big_order_info[1] / deal_big_order_info[5], 2) |
| | | # threshold_rate = min(max(temp_rate, 0.3), 0.7) |
| | | volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code) |
| | | volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code)*0.9 |
| | | threshold_rate = min(max(volume_rate, 0.3), 0.6) |
| | | except: |
| | | pass |
| | |
| | | fdatas = [] |
| | | yesterday_codes = kpl_data_manager.get_yesterday_limit_up_codes() |
| | | deal_codes = DealAndDelegateWithBuyModeDataManager().get_deal_codes() |
| | | start_time = time.time() |
| | | for code in codes: |
| | | try: |
| | | if code in yesterday_codes: |
| | |
| | | fdatas.append(data) |
| | | except Exception as e1: |
| | | logger_debug.exception(e1) |
| | | use_time = time.time() - start_time |
| | | if use_time > 2: |
| | | logger_debug.info(f"想买单列表耗时:{use_time}") |
| | | fdatas.sort(key=lambda x: x[2] if x[2] else time.time()) |
| | | response_data = json.dumps({"code": 0, "data": fdatas}) |
| | | except Exception as e: |