[Fix]修改委托量负号错误

This commit is contained in:
vn.py 2018-06-14 13:12:05 +08:00
parent 17f777b84c
commit c14ae4d5e0

View File

@ -388,7 +388,7 @@ class GatewayApi(BitfinexApi):
if amount > 0:
bid[price ] = amount
else:
ask[price] = amount
ask[price] = -amount
# Bitfinex的深度数据更新是逐档推送变动情况而非5档一起推
# 因此会出现没有Bid或者Ask的情况这里使用try...catch过滤