Administrator
2023-10-27 ac0551c20c35d84796f7975cf5f4c3c615b56334
trade/trade_record_log_util.py
@@ -58,9 +58,10 @@
    CANCEL_TYPE_L_DOWN = "l_cancel_down"
    CANCEL_TYPE_D = "d_cancel"
    def __init__(self, cancel_type, watch_indexes: list):
    def __init__(self, cancel_type, buy_single_index, watch_indexes: list):
        self.cancel_type = cancel_type
        self.watch_indexes = watch_indexes
        self.buy_single_index = buy_single_index
    def to_json_str(self):
        return json.dumps(vars(self))