Improved inspect and positions

This commit is contained in:
2026-07-24 01:13:28 +02:00
parent 8b5fa22deb
commit 7b0f80864b
2 changed files with 28 additions and 41 deletions
+14 -7
View File
@@ -41,9 +41,11 @@ pub struct WatchListItem {
#[pwp]
pub struct ActivePosition {
symbol: String,
profit: f64,
amount: f64,
pub symbol: String,
pub size: f64,
pub entry_price: f64,
pub mark_price: f64,
pub profit: f64,
}
#[pwp]
@@ -138,10 +140,15 @@ pub struct Alert {
#[pwp]
pub enum InspectTarget {
None,
Symbol(WatchListItem),
Position(ActivePosition),
Signal(Signal),
Alert(Alert),
Some(Vec<InspectItem>),
}
#[pwp]
pub enum InspectItem {
String(String),
Symbol(String),
USD(f64),
F64(f64),
}
impl std::fmt::Display for MarketTrend {