`
This commit is contained in:
@@ -630,7 +630,10 @@ class mt5(Exchange, ImplicitAPI):
|
||||
|
||||
# 确定持仓方向
|
||||
order_type = self.safe_string(position, 'orderType')
|
||||
side = 'long' if order_type == 'Buy' else 'short'
|
||||
if order_type in ['Buy','Sell']:
|
||||
side = 'long' if order_type == 'Buy' else 'short'
|
||||
else:
|
||||
side = order_type
|
||||
|
||||
# 获取持仓数量 (未平仓数量)
|
||||
contracts = lots - close_lots
|
||||
|
||||
Reference in New Issue
Block a user