| | |
| | | if max_money < m: |
| | | max_money = m |
| | | total_deal_money += x[1] * x[2] |
| | | if max_money>=4990000: |
| | | if max_money >= 4990000: |
| | | return True, f"有大于499w大卖单({max_money})" |
| | | |
| | | limit_up_price = gpcode_manager.get_limit_up_price(code) |
| | |
| | | fdeal = big_sell_order_info[1][0][3] |
| | | start_order_no = fdeal[1] |
| | | sell_time_str = l2_huaxin_util.convert_time(fdeal[0], with_ms=False) |
| | | is_s_slow_timw = tool.trade_time_sub(sell_time_str, total_datas[real_order_index]["val"]["time"]) < 180 |
| | | is_s_slow_timw = tool.trade_time_sub(sell_time_str, |
| | | total_datas[real_order_index]["val"]["time"]) < 180 |
| | | total_slow_num = 0 |
| | | total_slow_count = 0 |
| | | # 获取正在成交的数据 |
| | |
| | | threash_money_w = 200 |
| | | except Exception as e: |
| | | l2_log.s_cancel_debug(code, f"S撤激进下单计算大单卖阈值出错:{str(e)}") |
| | | total_fast_money = int(total_fast_num*100*float(limit_up_price)) |
| | | total_fast_money = int(total_fast_num * 100 * float(limit_up_price)) |
| | | if total_fast_money == 0: |
| | | # 防止分母为0 |
| | | total_fast_money = 1 |
| | | rate = round(total_deal_money/total_fast_money ,2) |
| | | if total_deal_money >= threash_money_w * 10000 and rate >= 0.25: |
| | | rate = round(total_deal_money / total_fast_money, 2) |
| | | if total_deal_money >= threash_money_w * 10000 and rate >= 0.25: |
| | | return True, f"近1s有大卖单({round(total_deal_money / 10000, 1)}万/{threash_money_w}万,成交占比:{total_deal_money}/{total_fast_money})" |
| | | return False, f"无{threash_money_w}大单" |
| | | |