| | |
| | | return code_str |
| | | |
| | | def buy(self, code, limit_up_price, win=0): |
| | | if not constant.TRADE_ENABLE: |
| | | return |
| | | try: |
| | | logger_trade_gui.info("开始买入:code-{}".format(code)) |
| | | if win < 1: |
| | |
| | | |
| | | # 撤买 |
| | | def cancel_buy(self, code): |
| | | if constant.TEST: |
| | | if not constant.TRADE_ENABLE: |
| | | return |
| | | self.buy_cancel_lock.acquire() |
| | | logger_trade_gui.info("开始获取撤单控件:code-{}".format(code)) |
| | |
| | | |
| | | # 交易盘口中的撤买 |
| | | def cancel_buy_again(self, code): |
| | | if constant.TEST: |
| | | if not constant.TRADE_ENABLE: |
| | | return |
| | | win = THSBuyWinManagerNew.get_distributed_code_win(code) |
| | | if win is None or win <= 0: |