| | |
| | | threshold_money += val["num"] * int(float(val["price"]) * 100) |
| | | elif L2DataUtil.is_sell_cancel(val): |
| | | threshold_money -= val["num"] * int(float(val["price"]) * 100) |
| | | elif L2DataUtil.is_buy(val): |
| | | # TODO 判断价格(大于买1) 被买吃掉 |
| | | threshold_money -= val["num"] * int(float(val["price"]) * 100) |
| | | # 第二步:计算起始信号 |
| | | second_930 = 9 * 3600 + 30 * 60 + 0 |
| | | total_datas = local_today_datas.get(code) |
| | |
| | | if not trigger_buy: |
| | | not_buy_msg = f"【{i}】没有买单触发" |
| | | continue |
| | | if buy_count < 2: |
| | | not_buy_msg = f"【{i}】安全笔数不足,{buy_count}/{2}" |
| | | if buy_count < 3: |
| | | not_buy_msg = f"【{i}】安全笔数不足,{buy_count}/{3}" |
| | | continue |
| | | |
| | | # max_buy_num_set = cls.__filter_not_deal_indexes(code, max_buy_num_set) |