Tidy up
This commit is contained in:
+4
-4
@@ -1,5 +1,5 @@
|
||||
use rust_decimal::Decimal;
|
||||
use pulse_sdk::prelude::*;
|
||||
use rust_decimal::Decimal;
|
||||
use serde_json::Value;
|
||||
use std::collections::HashMap;
|
||||
|
||||
@@ -80,9 +80,9 @@ pub async fn fetch_watch_list(
|
||||
}
|
||||
|
||||
items.push(MarketItem {
|
||||
symbol: Symbol(symbol.clone()),
|
||||
price: USD(price),
|
||||
volume_24h: USD(volume_24h),
|
||||
symbol: symbol.clone(),
|
||||
price: price,
|
||||
volume_24h: volume_24h,
|
||||
trend: ((price / previous_day_price) - <Decimal as From<i32>>::from(1))
|
||||
* <Decimal as From<i32>>::from(100),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user