[Fix]修改委托量负号错误
This commit is contained in:
parent
17f777b84c
commit
c14ae4d5e0
@ -388,7 +388,7 @@ class GatewayApi(BitfinexApi):
|
|||||||
if amount > 0:
|
if amount > 0:
|
||||||
bid[price ] = amount
|
bid[price ] = amount
|
||||||
else:
|
else:
|
||||||
ask[price] = amount
|
ask[price] = -amount
|
||||||
|
|
||||||
# Bitfinex的深度数据更新是逐档推送变动情况,而非5档一起推
|
# Bitfinex的深度数据更新是逐档推送变动情况,而非5档一起推
|
||||||
# 因此会出现没有Bid或者Ask的情况,这里使用try...catch过滤
|
# 因此会出现没有Bid或者Ask的情况,这里使用try...catch过滤
|
||||||
|
Loading…
Reference in New Issue
Block a user