| | |
| | | import constant |
| | | from third_data import kpl_util |
| | | from trade import trade_record_log_util |
| | | from trade.trade_manager import DealCodesManager, PlatePlaceOrderManager |
| | | from trade.trade_manager import DealCodesManager, PlatePlaceOrderManager, TradeStateManager |
| | | from utils import huaxin_util, tool |
| | | |
| | | BIG_ORDER_MAX_SPACE_TIME = 3 |
| | |
| | | if compute_result[0]: |
| | | if code in sv.成交代码: |
| | | return |
| | | if not TradeStateManager().is_can_buy_cache(): |
| | | async_log_util.info(logger_trade, f"交易已关闭") |
| | | return |
| | | |
| | | # 可以下单 |
| | | # 判断是否可以买 |
| | | order_ref = huaxin_util.create_order_ref() |