瀏覽代碼

加入depth日志

skyfffire 2 年之前
父節點
當前提交
be143862cc
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      quant.py

+ 2 - 0
quant.py

@@ -16,6 +16,7 @@ import psutil
 import ujson
 import broker
 from decimal import Decimal
+from loguru import logger
 
 VERSION = utils.VERSION
 
@@ -581,6 +582,7 @@ class Quant:
 
     # @utils.timeit
     async def _update_depth(self, data):
+        logger.info(data)
         '''
             update orderbook infomation
         '''