1
This commit is contained in:
@@ -772,11 +772,14 @@ class mt5(Exchange, ImplicitAPI):
|
||||
else:
|
||||
# 如果无法解析,使用原始 market_id
|
||||
symbol = market_id
|
||||
|
||||
timestamp = self.parse8601(self.safe_string(order, 'openTime')) - self.diff_milliseconds
|
||||
last_trade_timestamp = self.parse8601(self.safe_string(order, 'closeTime')) - self.diff_milliseconds
|
||||
if last_trade_timestamp is None:
|
||||
|
||||
timestamp = self.safe_integer(order, 'openTimestampUTC') - self.diff_milliseconds
|
||||
last_trade_timestamp = self.safe_integer(order, 'closeTimestampUTC')
|
||||
|
||||
if last_trade_timestamp is None or last_trade_timestamp <= 0:
|
||||
last_trade_timestamp = timestamp
|
||||
else:
|
||||
last_trade_timestamp = last_trade_timestamp - self.diff_milliseconds
|
||||
|
||||
status = self.parse_order_status(self.safe_string(order, 'state'))
|
||||
side = self.parse_order_side(self.safe_string(order, 'orderType'))
|
||||
|
||||
Reference in New Issue
Block a user