|
|
@@ -492,6 +492,11 @@ impl Core {
|
|
|
}
|
|
|
// info!("成交单耗时数据:{}", time_record.to_string());
|
|
|
info!("更新推算仓位 {:?}", self.local_position_by_orders);
|
|
|
+
|
|
|
+ // 有的交易所空仓后半天不推仓位……
|
|
|
+ if self.local_position_by_orders.short_pos == self.local_position_by_orders.long_pos {
|
|
|
+ self.predictor.on_inventory(&Decimal::ZERO, &Decimal::ZERO, &self.strategy.min_amount_value).await;
|
|
|
+ }
|
|
|
// 本地计算利润
|
|
|
self._print_local_trades_summary();
|
|
|
// 打印各类信息
|