Labeled price
This commit is contained in:
@@ -61,8 +61,6 @@ impl Engine {
|
|||||||
loop {
|
loop {
|
||||||
tokio::time::sleep(tokio::time::Duration::from_millis(5000)).await;
|
tokio::time::sleep(tokio::time::Duration::from_millis(5000)).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ impl Formatted for WatchListItem {
|
|||||||
fn get_formatted(&self) -> Vec<String> {
|
fn get_formatted(&self) -> Vec<String> {
|
||||||
vec![
|
vec![
|
||||||
format!("\x1b[35m{}\x1b[0m", self.symbol),
|
format!("\x1b[35m{}\x1b[0m", self.symbol),
|
||||||
format_f64(self.price),
|
format!("${}", format_f64(self.price)),
|
||||||
format!("${}", format_f64(self.volume_24h)),
|
format!("${}", format_f64(self.volume_24h)),
|
||||||
format!(
|
format!(
|
||||||
"{} {}",
|
"{} {}",
|
||||||
|
|||||||
Reference in New Issue
Block a user