futucli/cmd/analysis/
company.rs1mod financials;
4mod profile;
5mod research;
6mod valuation;
7
8pub use financials::{
9 FinancialCalendarCommand, FinancialCalendarTargetCommand, run_financial_calendar,
10 run_financial_calendar_target, run_financials_earnings_price_history,
11 run_financials_earnings_price_move, run_financials_revenue_breakdown,
12 run_financials_statements,
13};
14pub use profile::{
15 run_company_executive_background, run_company_executives, run_company_operational_efficiency,
16 run_company_profile,
17};
18pub use research::{
19 run_research_analyst_consensus, run_research_morningstar_report, run_research_rating_summary,
20};
21pub use valuation::{run_valuation_detail, run_valuation_plate_stock_list};
22
23fn display_opt(value: &Option<String>) -> String {
24 value.clone().unwrap_or_default()
25}
26
27fn display_opt_i32(value: Option<i32>) -> String {
28 value.map(|v| v.to_string()).unwrap_or_default()
29}
30
31fn display_opt_i64(value: Option<i64>) -> String {
32 value.map(|v| v.to_string()).unwrap_or_default()
33}
34
35fn display_opt_f64(value: Option<f64>) -> String {
36 value.map(|v| v.to_string()).unwrap_or_default()
37}