|
|
@@ -466,6 +466,9 @@ class TradingStrategy:
|
|
|
await self._open_position(market_info, binance_price)
|
|
|
return
|
|
|
|
|
|
+ # 记录开仓时间
|
|
|
+ self.last_trade_time = time.time()
|
|
|
+
|
|
|
# 直接发送预签名交易
|
|
|
try:
|
|
|
# 在发送前打印订单信息
|
|
|
@@ -479,8 +482,6 @@ class TradingStrategy:
|
|
|
await self._open_position(market_info, binance_price)
|
|
|
return
|
|
|
|
|
|
- # 记录开仓时间
|
|
|
- self.last_trade_time = time.time()
|
|
|
logger.info(f"预签名{side_desc}交易已发送,交易哈希={tx_hash}")
|
|
|
|
|
|
# 清空已使用的预签名交易
|