| | |
| | | # 返回数据与更新时间 |
| | | def __get_buy_queue_data(self, code): |
| | | key = "trade_buy_queue_data-{}".format(code) |
| | | val = self.__getRedis().get(key) |
| | | val = RedisUtils.get(self.__getRedis(), key) |
| | | if val is None: |
| | | return None, None |
| | | val = json.loads(val) |
| | |
| | | |
| | | def __get_buy_progress_index(self, code): |
| | | key = "trade_buy_progress_index-{}".format(code) |
| | | val = self.__getRedis().get(key) |
| | | val = RedisUtils.get(self.__getRedis(), key) |
| | | if val is None: |
| | | return None, True |
| | | val = json.loads(val) |
| | |
| | | def __get_latest_not_limit_up_time(self, code): |
| | | key = "latest_not_limit_up_time-{}".format(code) |
| | | if not constant.TEST: |
| | | return self.__getRedis().get(key) |
| | | return RedisUtils.get(self.__getRedis(), key) |
| | | return None |
| | | |
| | | # 保存数据,返回保存数据的条数 |