gepangpang 1 年之前
父節點
當前提交
fa62ad055c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      standard/src/htx_swap.rs

+ 1 - 1
standard/src/htx_swap.rs

@@ -200,7 +200,7 @@ impl Platform for HtxSwap {
             sell: Decimal::from_f64(ticker_info["bid"][0].as_f64().unwrap()).unwrap(),
             buy: Decimal::from_f64(ticker_info["ask"][0].as_f64().unwrap()).unwrap(),
             last: Decimal::from_str(ticker_info["close"].as_str().unwrap()).unwrap(),
-            volume: Decimal::from_f64(ticker_info["amount"].as_f64().unwrap()).unwrap(),
+            volume: Decimal::from_str(ticker_info["amount"].as_str().unwrap()).unwrap(),
         };
         Ok(result)
     }