Przeglądaj źródła

买入平台币 现货时触发

JiahengHe 2 lat temu
rodzic
commit
050c48f757
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      strategy/src/quant.rs

+ 6 - 0
strategy/src/quant.rs

@@ -1316,6 +1316,12 @@ impl Quant {
         self.local_cash = start_cash;
         self.local_coin = start_coin;
 
+        // 买入平台币
+        if self.exchange.contains("spot"){ // 现货
+            self.buy_token().await;
+        }
+
+
         // 清空挂单和仓位
         self.check_position().await;
         /*