huaxin_client/l2_client.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
utils/tool.py | ●●●●● 补丁 | 查看 | 原始文档 | 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):