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