| | |
| | | if current_lack_money == 0 and total_lack_money == 0: |
| | | return True, f"量比-{volume_rate}, 瞬时大单成交-({current_big_order_deal_money}/{current_threshold_money}),总大单成交-({total_lack_money_info[1]}/{total_lack_money_info[2]})", before_time, 0, total_lack_money <= 0, current_lack_money, total_lack_money, current_big_order_deal_orderids |
| | | return False, f"量比-{volume_rate}, 瞬时大单成交-({current_big_order_deal_money}/{current_threshold_money}),总大单成交-({total_lack_money_info[1]}/{total_lack_money_info[2]})", before_time, max( |
| | | current_lack_money, total_lack_money), total_lack_money <= 0, current_lack_money, total_lack_money, current_big_order_deal_orderids |
| | | current_lack_money, |
| | | total_lack_money), total_lack_money <= 0, current_lack_money, total_lack_money, current_big_order_deal_orderids |
| | | |
| | | |
| | | class EveryLimitupBigDealOrderManager: |
| | |
| | | # 根据L1判断是否涨停 |
| | | max_price_info = MaxPriceInfoManager().get_price_info_cache(code) |
| | | limit_up_price = gpcode_manager.get_limit_up_price_as_num(code) |
| | | if max_price_info and abs(max_price_info[0] - limit_up_price)<0.001 and tool.trade_time_sub(tool.get_now_time_str(), max_price_info[1])>=3: |
| | | if max_price_info and abs(max_price_info[0] - limit_up_price) < 0.001 and tool.trade_time_sub( |
| | | tool.get_now_time_str(), max_price_info[1]) >= 10: |
| | | # 是涨停价且涨停时间距离现在3s以上 |
| | | is_limit_up = True |
| | | |