| | |
| | | code = d[0] |
| | | limit_up_reasons[code] = d[5] |
| | | codes_set.add(code) |
| | | if code.find("00") == 0 or code.find("60") == 0: |
| | | if tool.is_shsz_code(code): |
| | | limit_up_time = time.strftime("%H:%M:%S", time.localtime(d[2])) |
| | | code_price_manager.Buy1PriceManager().set_limit_up_time(code, limit_up_time) |
| | | add_codes = codes_set - self.__latest_limit_up_codes_set |
| | |
| | | if add_codes: |
| | | for code in add_codes: |
| | | # 根据涨停原因判断是否可以买 |
| | | if code.find("00") == 0 or code.find("60") == 0: |
| | | if tool.is_shsz_code(code): |
| | | try: |
| | | # 判断是否下单 |
| | | trade_state = trade_manager.CodesTradeStateManager().get_trade_state(code) |