| | |
| | | total_datas[real_place_order_info[0]]['val']['orderNo'], min_sell_money=min_sell_money) |
| | | sell_order_num = sum([x[1] for x in sell_orders]) // 100 |
| | | rate = round(sell_order_num / total_num, 2) |
| | | if rate > 0.49: |
| | | threshold_rate = constant.S_SLOW_RATE |
| | | if gpcode_manager.MustBuyCodesManager().is_in_cache(code): |
| | | threshold_rate = constant.S_SLOW_RATE_WITH_MUST_BUY |
| | | if rate > threshold_rate: |
| | | return True, f"慢砸成交比例:{rate}/0.49 成交:{sell_order_num}/{total_num}" |
| | | else: |
| | | return False, f"尚未触发撤单比例:{rate}" |
| | |
| | | total_count, total_num = L2DataComputeUtil.compute_left_buy_order(code, trade_index, |
| | | real_order_index_info[0], |
| | | limit_up_price) |
| | | if total_deal_money / (total_num * limit_up_price * 100) >= 0.3: |
| | | if total_num==0: |
| | | total_num = 1 |
| | | |
| | | threshold_rate = constant.S_FAST_BIG_RATE |
| | | if gpcode_manager.MustBuyCodesManager().is_in_cache(code): |
| | | threshold_rate = constant.S_FAST_BIG_RATE_WITH_MUST_BUY |
| | | |
| | | if total_deal_money / (total_num * limit_up_price * 100) >= threshold_rate: |
| | | # 大单成交额占总剩余总囊括的30% |
| | | return True, f"1s内大于{threshold_big_deal}大卖单({total_deal_money})" |
| | | else: |
| | |
| | | # 防止分母为0 |
| | | total_fast_money = 1 |
| | | rate = round(total_deal_money / total_fast_money, 2) |
| | | threshold_rate = constant.F_FAST_RATE |
| | | threshold_rate = constant.S_FAST_RATE |
| | | if gpcode_manager.MustBuyCodesManager().is_in_cache(code): |
| | | threshold_rate = constant.F_FAST_RATE_WITH_MUST_BUY |
| | | threshold_rate = constant.S_FAST_RATE_WITH_MUST_BUY |
| | | |
| | | if total_deal_money >= threash_money_w * 10000 and rate >= threshold_rate: |
| | | return True, f"近1s有大卖单({round(total_deal_money / 10000, 1)}万/{threash_money_w}万,成交占比:{total_deal_money}/{total_fast_money})" |