Browse Source

平仓的时候不展示的bug。

skyffire 8 months ago
parent
commit
3debbc7de6
1 changed files with 10 additions and 2 deletions
  1. 10 2
      strategy/src/strategy.rs

+ 10 - 2
strategy/src/strategy.rs

@@ -825,7 +825,11 @@ impl Strategy {
                     predictor.pos_amount.abs().to_string(),
                     "pd".to_string(),
                     price.to_string(),
-                    order_client_id.clone()
+                    order_client_id.clone(),
+                    Utc::now().timestamp_millis().to_string(),
+                    predictor.fair_price.to_string(),
+                    predictor.mid_price.to_string(),
+                    predictor.optimal_ask_price.to_string(),
                 ];
 
                 command.limits_close.insert(order_client_id, order);
@@ -845,7 +849,11 @@ impl Strategy {
                     predictor.pos_amount.abs().to_string(),
                     "pk".to_string(),
                     price.to_string(),
-                    order_client_id.clone()
+                    order_client_id.clone(),
+                    Utc::now().timestamp_millis().to_string(),
+                    predictor.fair_price.to_string(),
+                    predictor.mid_price.to_string(),
+                    predictor.optimal_bid_price.to_string(),
                 ];
 
                 command.limits_close.insert(order_client_id, order);