pub mod app;
pub mod event;
pub mod keymap;
pub mod layout;
pub mod theme;
pub mod trade_cmd;
pub mod widgets;
pub mod ws;

use anyhow::Result;

use crate::config::ResolvedConfig;

pub async fn launch_dashboard(
    symbol: &str,
    config: &ResolvedConfig,
    secret: Option<&str>,
    base_url: Option<&str>,
) -> Result<()> {
    app::run(symbol, config, secret, base_url).await
}
