Administrator
2022-09-18 b946684114d097e937b766f986d12c7eea8edce8
global_util.py
@@ -12,6 +12,18 @@
zyltgb_map = {}
# 今日涨停代码隐射
today_limit_up_codes = {}
# 行业热度指数
industry_hot_num = {}
# 今日量
today_volumn = {}
# 60日最大量
max60_volumn = {}
# 昨日量
yesterday_volumn = {}
# 大单
big_money_num = {}
# 涨停时间
limit_up_time = {}
# 加载行业数据
@@ -31,7 +43,11 @@
        if results is not None:
            results = [doc for doc in results]
            if len(results) > 0:
                zyltgb_map[code] = results[0]
                result = results[0]
                if result["zyltgb_unit"] == 0:
                    zyltgb_map[code] = round(float(result["zyltgb"]) * 100000000)
                else:
                    zyltgb_map[code] = round(float(result["zyltgb"]) * 10000)
# 添加今日涨停数据
@@ -47,4 +63,5 @@
if __name__ == "__main__":
    load_industry()
    load_zyltgb()
    print(zyltgb_map["002819"])