replaced market overview
This commit is contained in:
@@ -29,7 +29,7 @@ pub struct PulseTradeApp {
|
||||
command: State<InputState>,
|
||||
scroll: State<ScrollState<7>>,
|
||||
|
||||
market_overview: State<Option<MarketOverview>>,
|
||||
strategy: State<Option<Strategy>>,
|
||||
status: State<Option<Status>>,
|
||||
|
||||
watch_list: State<Vec<MarketItem>>,
|
||||
@@ -134,13 +134,7 @@ impl App for PulseTradeApp {
|
||||
(
|
||||
LayoutItem::Widget(Size::Flex(1)),
|
||||
Box::new(
|
||||
advanced_option_draw(
|
||||
&self.scroll,
|
||||
2,
|
||||
"MARKET OVERVIEW",
|
||||
&self.market_overview,
|
||||
)
|
||||
.await,
|
||||
advanced_option_draw(&self.scroll, 2, "STRATEGY", &self.strategy).await,
|
||||
),
|
||||
),
|
||||
]),
|
||||
@@ -187,7 +181,7 @@ async fn main() -> tokio::io::Result<()> {
|
||||
signals: ctx.use_state(Vec::new()),
|
||||
logs: ctx.use_state(Vec::new()),
|
||||
inspect: ctx.use_state(InspectTarget::None),
|
||||
market_overview: ctx.use_state(None),
|
||||
strategy: ctx.use_state(None),
|
||||
status: ctx.use_state(None),
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user