//! TUI runtime state: chart history, parsed book snapshot, trading panel.

use chrono::Utc;

pub mod book;
pub mod liquidation_feed_view;
pub mod markers;
pub mod market;
pub mod orders_view;
pub mod position_leaderboard_view;
pub mod positions_view;
pub mod trade_panel;
pub mod tui;
pub mod twap_bots_view;
pub mod updates;

pub use book::*;
pub use liquidation_feed_view::*;
pub use markers::*;
pub use market::*;
pub use orders_view::*;
pub use position_leaderboard_view::*;
pub use positions_view::*;
pub use trade_panel::*;
pub use tui::*;
pub use twap_bots_view::*;
pub use updates::*;

/// Returns a timestamp string formatted as `[HH:MM:SS UTC]`.
pub fn make_status_timestamp() -> String {
    format!(" {}", Utc::now().format("%H:%M:%S"))
}
