Administrator
2024-01-19 a00da3062c6c825b585f82275823ac45cdeb6502
l2_data_util.py
@@ -32,7 +32,7 @@
    price = float(val["price"])
    money = price * val["num"]
    if price > 3.0:
        if money >= 30000:
        if money >= 29900:
            return True
        else:
            return False
@@ -47,7 +47,7 @@
# 获取大资金的金额
def get_big_money_val(limit_up_price):
    if limit_up_price > 3.0:
        return 300 * 10000
        return 299 * 10000
    else:
        max_money = limit_up_price * 10000
        return max_money * 0.95
@@ -185,7 +185,6 @@
# 保存l2最新数据的大小
# TODO 测试数据
# @async_call
def save_l2_latest_data_number(code, num):
    RedisUtils.setex(l2_data_manager._redisManager.getRedis(), "l2_latest_data_num-{}".format(code), 3, num)
@@ -199,7 +198,7 @@
    return None
# l2数据拼接工具 TODO 暂时还未启用
# l2数据拼接工具  暂时还未启用
class L2DataConcatUtil:
    # 初始化