gepangpang há 1 ano atrás
pai
commit
fa62ad055c
1 ficheiros alterados com 1 adições e 1 exclusões
  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)
     }