| | |
| | | |
| | | # 股票代码相关的参数 |
| | | import decimal |
| | | import time |
| | | |
| | | from code_attribute import gpcode_manager |
| | | from db import mysql_data_delegate as mysql_data, redis_manager_delegate as redis_manager |
| | | from db import redis_manager_delegate as redis_manager |
| | | from db.mysql_data_delegate import Mysqldb |
| | | from db.redis_manager_delegate import RedisUtils |
| | | from utils import tool |
| | | from utils.tool import async_call |
| | | |
| | | __db = 0 |
| | | _redisManager = redis_manager.RedisManager(0) |
| | |
| | | |
| | | # 代码对应的价格是否正确 |
| | | def is_same_code_with_price(code, price): |
| | | if code == '600066': |
| | | print('进入调试') |
| | | # 昨日收盘价 |
| | | price_close = gpcode_manager.CodePrePriceManager.get_price_pre_cache(code) |
| | | max_price = tool.to_price(decimal.Decimal(str(price_close)) * decimal.Decimal(tool.get_limit_up_rate(code))) |