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)
     }