|
|
@@ -1326,8 +1326,8 @@ impl Core {
|
|
|
}
|
|
|
}
|
|
|
// 发起清仓订单
|
|
|
- let ts = TraceStack::new(0, Instant::now());
|
|
|
- // ts.on_before_send();
|
|
|
+ let mut ts = TraceStack::new(0, Instant::now());
|
|
|
+ ts.on_before_send();
|
|
|
// 市价单
|
|
|
match self.platform_rest.take_order_symbol(position.symbol.clone(),
|
|
|
Decimal::ONE,
|
|
|
@@ -1336,7 +1336,7 @@ impl Core {
|
|
|
price,
|
|
|
position.amount.abs()).await {
|
|
|
Ok(order) => {
|
|
|
- // ts.on_after_send();
|
|
|
+ ts.on_after_send();
|
|
|
info!(" {}仓位清除市价下单成功 {:?}, {}", position.symbol.clone(), order, ts.to_string());
|
|
|
// 执行完当前币对 结束循环
|
|
|
continue;
|