| | |
| | | if gpcode_manager.BuyOpenLimitUpCodeManager().is_in_cache(d[0]): |
| | | # 09:19:50 到 09:20:00判断是否要撤单 |
| | | if int("091950") <= int(d[9].replace(":", "")) < int("092000"): |
| | | async_log_util.info(logger_debug, f"排1撤单:{d}") |
| | | async_log_util.info(logger_debug, f"排1撤单:{d},封单:{d[8] * d[5]}") |
| | | if d[8] * d[5] < 1e8: |
| | | code = d[0] |
| | | current_delegates = DelegateRecordManager().list_current_delegates(code) |
| | |
| | | if not constant.TRADE_ENABLE: |
| | | return |
| | | try: |
| | | result = huaxin_trade_api.order(1, code, 100, limit_up_price, blocking=True, |
| | | volume = tool.get_buy_volume_by_money(limit_up_price, constant.AVAILABLE_BUY_MONEYS[0]) |
| | | result = huaxin_trade_api.order(1, code, volume, limit_up_price, blocking=True, |
| | | shadow_price=shadow_price) |
| | | async_log_util.info(logger_trade, f"{code}下单结束:{result}") |
| | | except Exception as e: |