瀏覽代碼

修复cash、coin搞反了的问题

skyfffire 10 月之前
父節點
當前提交
3d2c6cf7e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      strategy/src/strategy.rs

+ 1 - 1
strategy/src/strategy.rs

@@ -234,8 +234,8 @@ impl Strategy {
     // #[instrument(skip(self, trader_msg), level="TRACE")]
     pub fn _update_data(&mut self,
                         local_position: &LocalPosition,
-                        local_cash: &Decimal,
                         local_coin: &Decimal,
+                        local_cash: &Decimal,
                         predictor: &Predictor) -> bool {
         // position信息更新
         if self.pos.long_pos != local_position.long_pos {