admin
2025-04-10 57bbe54ddb121717730939b23a53d98d59818c5e
订阅修改
2个文件已修改
3 ■■■■ 已修改文件
huaxin_client/l2_client.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/tool.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
huaxin_client/l2_client.py
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import json
import logging
import multiprocessing
import os
import queue
import threading
utils/tool.py
@@ -364,7 +364,7 @@
def get_limit_up_price(code, pre_price):
    price = (decimal.Decimal(pre_price) * decimal.Decimal(get_limit_up_rate(code))).quantize(decimal.Decimal("0.00"),
                                                                                             decimal.ROUND_HALF_UP)
    return round(price, 2)
    return round(float(price), 2)
def get_limit_down_price(code, pre_price):