Browse Source

尝试修复报错的bug。

skyffire 9 tháng trước cách đây
mục cha
commit
d0302879e5
1 tập tin đã thay đổi với 10 bổ sung2 xóa
  1. 10 2
      strategy/src/strategy.rs

+ 10 - 2
strategy/src/strategy.rs

@@ -692,7 +692,11 @@ impl Strategy {
                 amount.to_string(),
                 "pd".to_string(),
                 price.to_string(),
-                client_id.to_string()
+                client_id.to_string(),
+                Utc::now().timestamp_millis().to_string(),
+                "0".to_string(),
+                "0".to_string(),
+                "0".to_string(),
             ];
             command.limits_close.insert(client_id.clone(), value);
 
@@ -712,7 +716,11 @@ impl Strategy {
                 amount.to_string(),
                 "pk".to_string(),
                 price.to_string(),
-                client_id.to_string()
+                client_id.to_string(),
+                Utc::now().timestamp_millis().to_string(),
+                "0".to_string(),
+                "0".to_string(),
+                "0".to_string(),
             ];
             command.limits_close.insert(client_id.clone(), value);