| | |
| | | from db.redis_manager import RedisUtils |
| | | from utils import tool |
| | | from db import redis_manager |
| | | from third_data import block_info |
| | | from third_data import block_info |
| | | |
| | | __redisManager = redis_manager.RedisManager(0) |
| | | |
| | |
| | | # 4.最近炸开时间 |
| | | # 5.是否已经涨停 |
| | | def __save_first_code_data(code, data): |
| | | RedisUtils.setex(__redisManager.getRedis(),f"first_code_data-{code}", tool.get_expire(), json.dumps(data)) |
| | | RedisUtils.setex(__redisManager.getRedis(), f"first_code_data-{code}", tool.get_expire(), json.dumps(data)) |
| | | |
| | | |
| | | def __get_first_code_data(code): |
| | |
| | | redis = __redisManager.getRedis() |
| | | if codes: |
| | | for code in codes: |
| | | redis.srem("first_no_screen_codes", code) |
| | | RedisUtils.srem(redis, "first_no_screen_codes", code) |
| | | |
| | | |
| | | def __get_first_no_screen_codes(): |