MCPcopy Create free account

hub / github.com/MarkusZoppelt/portfolio_rs / functions

Functions385 in github.com/MarkusZoppelt/portfolio_rs

↓ 2 callersMethodprevious_tab
(&mut self)
src/tui.rs:630
↓ 2 callersMethodprint
Print the portfolio as a table
src/portfolio.rs:128
↓ 2 callersFunctionpush_list
(out: &mut String, items: &[String])
src/context.rs:376
↓ 2 callersMethodrefresh_prices
Re-fetch live prices for the currently loaded positions, bypassing the portfolio cache.
src/state.rs:182
↓ 2 callersFunctionrender_historic_graph
(f: &mut Frame, area: Rect, portfolio: &Portfolio, app: &App)
src/tui.rs:1624
↓ 2 callersFunctionrender_loading
(f: &mut Frame, area: Rect)
src/tui.rs:2700
↓ 2 callersMethodset_positions_json
Replace the raw JSON and refresh live prices.
src/state.rs:172
↓ 2 callersMethodset_workspace
Set the active workspace and clear any standalone file.
src/config.rs:176
↓ 2 callersMethodupdate_position
( &self, id: usize, req: UpdatePositionRequest, )
src/state.rs:522
↓ 2 callersMethodupdate_price
(&mut self, last_spot: f64)
src/position.rs:53
↓ 2 callersFunctionvalidate_portfolio_file
Validate a portfolio JSON file and return a structured report.
src/validate.rs:34
↓ 1 callersMethodcan_save
Whether the loaded portfolio can be persisted with [`AppState::save`].
src/state.rs:269
↓ 1 callersFunctioncheck_constraints
( portfolio: &Portfolio, policy: &Policy, total_value: f64, )
src/review.rs:285
↓ 1 callersFunctioncheck_data_quality
(portfolio: &Portfolio)
src/review.rs:358
↓ 1 callersFunctionconfig_path
Returns the path to the configuration file.
src/lib.rs:63
↓ 1 callersFunctiondecision_draft
( filename: String, policy_file: String, title: Option<String>, dir: &str, dry_run: bool,
src/commands/decision.rs:34
↓ 1 callersFunctiondefault_aggressive_growth_policy
()
src/policy.rs:89
↓ 1 callersFunctiondefault_capital_preservation_policy
()
src/policy.rs:51
↓ 1 callersMethoddraw_pie_chart
(&self)
src/portfolio.rs:434
↓ 1 callersMethodenter_add_purchase_mode
(&mut self)
src/tui.rs:739
↓ 1 callersMethodenter_edit_mode
(&mut self)
src/tui.rs:704
↓ 1 callersMethodenter_edit_purchase_mode
(&mut self)
src/tui.rs:747
↓ 1 callersFunctionformat_amount
(amount: f64)
src/tui.rs:255
↓ 1 callersFunctionformat_with_commas
(value: f64)
src/tui.rs:232
↓ 1 callersMethodget_allocation
(&self, asset_class: &str)
src/policy.rs:241
↓ 1 callersMethodget_allocation
(&self)
src/portfolio.rs:108
↓ 1 callersMethodget_context
Build a portfolio context briefing from the currently loaded portfolio.
src/state.rs:587
↓ 1 callersFunctionget_historic_portfolio_data
(portfolio: &Portfolio)
src/tui.rs:267
↓ 1 callersMethodget_performance
(&self)
src/state.rs:385
↓ 1 callersMethodget_position
(&self, id: usize)
src/state.rs:286
↓ 1 callersMethodget_positions
(&self)
src/state.rs:276
↓ 1 callersFunctionget_previous_close
Try to get the previous close price for daily variation calculations, cache on success, fallback to cache on failure
src/position.rs:220
↓ 1 callersMethodget_review
Review the current portfolio against the loaded policy.
src/state.rs:599
↓ 1 callersMethodget_simulation
Simulate rebalancing scenarios against the loaded policy.
src/state.rs:614
↓ 1 callersFunctionhandle_agent
(sub_matches: &ArgMatches)
src/commands/agent.rs:6
↓ 1 callersFunctionhandle_allocation
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/portfolio.rs:27
↓ 1 callersFunctionhandle_balances
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/portfolio.rs:14
↓ 1 callersFunctionhandle_context
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/portfolio.rs:48
↓ 1 callersFunctionhandle_decision
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/decision.rs:10
↓ 1 callersFunctionhandle_doctor
(sub_matches: &ArgMatches)
src/commands/doctor.rs:5
↓ 1 callersFunctionhandle_init_workspace
(sub_matches: &ArgMatches)
src/commands/workspace.rs:5
↓ 1 callersFunctionhandle_mcp
()
src/commands/mcp.rs:11
↓ 1 callersFunctionhandle_performance
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/portfolio.rs:38
↓ 1 callersFunctionhandle_policy
(sub_matches: &ArgMatches)
src/commands/policy.rs:5
↓ 1 callersFunctionhandle_report
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/report.rs:10
↓ 1 callersFunctionhandle_review
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/review.rs:10
↓ 1 callersFunctionhandle_simulate
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/simulate.rs:10
↓ 1 callersFunctionhandle_sort
(sub_matches: &ArgMatches, cfg: &AppConfig)
src/commands/portfolio.rs:70
↓ 1 callersFunctionhandle_tui
Launch the interactive TUI (default when no subcommand is given).
src/commands/portfolio.rs:81
↓ 1 callersFunctionhandle_validate
Exit codes: 0 = valid, 1 = usage error, 2 = validation failed.
src/commands/validate.rs:9
↓ 1 callersFunctioninit_agent_files
(dir: &str, dry_run: bool)
src/workspace.rs:105
↓ 1 callersFunctionis_loopback_host
(host: &str)
src/api/mod.rs:144
↓ 1 callersFunctionload_config
Load the application configuration.
src/lib.rs:58
↓ 1 callersMethodload_policy
Load or reload policy from the default workspace location or an explicit path.
src/state.rs:128
↓ 1 callersMethodnext_tab
(&mut self)
src/tui.rs:621
↓ 1 callersFunctionopen_encrypted_file
Read a plaintext file or decrypt a `.gpg` file. Decrypted content is only ever held in memory; it is never written to disk.
src/services/portfolio_loader.rs:11
↓ 1 callersFunctionpolicy_from_strategy
(strategy: &str)
src/policy.rs:132
↓ 1 callersFunctionpolicy_init
(strategy: &str, dir: &str, dry_run: bool)
src/commands/policy.rs:50
↓ 1 callersMethodprint_allocation
Print the allocation in descending order %-wise
src/portfolio.rs:421
↓ 1 callersMethodprint_performance
(&self)
src/portfolio.rs:500
↓ 1 callersFunctionrender_add_purchase_form
(f: &mut Frame, area: Rect, app: &App)
src/tui.rs:1871
↓ 1 callersFunctionrender_balances
(f: &mut Frame, area: Rect, app: &App)
src/tui.rs:2333
↓ 1 callersFunctionrender_edit_dialog
(f: &mut Frame, app: &App)
src/tui.rs:2709
↓ 1 callersFunctionrender_edit_purchase_form
(f: &mut Frame, area: Rect, app: &App)
src/tui.rs:1962
↓ 1 callersFunctionrender_error_popup
(f: &mut Frame, error: &str)
src/tui.rs:2882
↓ 1 callersFunctionrender_overview
(f: &mut Frame, area: Rect, app: &App)
src/tui.rs:2053
↓ 1 callersFunctionrender_purchase_list
(f: &mut Frame, area: Rect, app: &App)
src/tui.rs:1795
↓ 1 callersFunctionreport_weekly
( filename: String, policy_file: &str, dir: &str, dry_run: bool, cfg: &AppConfig, )
src/commands/report.rs:31
↓ 1 callersFunctionrisk_flags
( summary: &ContextSummary, allocation: &[AllocationContext], positions: &[PositionContext], )
src/context.rs:300
↓ 1 callersFunctionrun
Entry point for the CLI — parses arguments and dispatches to subcommands.
src/cli.rs:463
↓ 1 callersFunctionrun_app
(terminal: &mut Terminal<B>, app: &mut App)
src/tui.rs:1288
↓ 1 callersMethodrun_doctor
Run a workspace health check.
src/state.rs:627
↓ 1 callersFunctionrun_server
Start the HTTP API server and serve until interrupted.
src/api/mod.rs:149
↓ 1 callersFunctionrun_tui
( portfolio: Portfolio, currency: String, positions_str: String, data_file_path: String, t
src/tui.rs:1185
↓ 1 callersMethodsave_edited_purchase
(&mut self)
src/tui.rs:878
↓ 1 callersMethodsave_new_purchase
(&mut self)
src/tui.rs:919
↓ 1 callersMethodsave_purchase_edit_to_file
(&self, date: &str, quantity: f64, price: f64)
src/tui.rs:1093
↓ 1 callersMethodsave_purchase_to_file
(&self, date: &str, quantity: f64, price: f64)
src/tui.rs:1034
↓ 1 callersMethodselect_next
(&mut self)
src/tui.rs:690
↓ 1 callersMethodselect_next_purchase
(&mut self)
src/tui.rs:721
↓ 1 callersMethodselect_previous
(&mut self)
src/tui.rs:698
↓ 1 callersMethodselect_previous_purchase
(&mut self)
src/tui.rs:733
↓ 1 callersMethodset_amount
(&mut self, amount: f64)
src/position.rs:101
↓ 1 callersMethodset_currency
(&mut self, currency: impl Into<String>)
src/config.rs:189
↓ 1 callersMethodset_historic_receiver
(&mut self, receiver: mpsc::UnboundedReceiver<Vec<(f64, f64)>>)
src/tui.rs:587
↓ 1 callersMethodset_portfolio_file
Set a standalone portfolio file and clear any workspace.
src/config.rs:183
↓ 1 callersMethodset_portfolio_receiver
( &mut self, receiver: mpsc::UnboundedReceiver<(Portfolio, NetworkStatus)>, )
src/tui.rs:580
↓ 1 callersFunctionskill_export
(dir: &str, dry_run: bool)
src/agent_skill.rs:14
↓ 1 callersFunctionskill_path
()
src/agent_skill.rs:54
↓ 1 callersFunctionskill_show
()
src/agent_skill.rs:10
↓ 1 callersFunctionstore_balance_in_db
(portfolio: &Portfolio)
src/services/persistence.rs:4
↓ 1 callersMethodto_json
(&self)
src/review.rs:280
↓ 1 callersMethodto_markdown
(&self)
src/review.rs:206
↓ 1 callersMethodtry_receive_historic_update
(&mut self)
src/tui.rs:605
↓ 1 callersMethodtry_receive_portfolio_update
(&mut self)
src/tui.rs:591
↓ 1 callersFunctionui
(f: &mut Frame, app: &App)
src/tui.rs:1556
↓ 1 callersMethodvalidate
(&self)
src/policy.rs:218
↓ 1 callersMethodvalidate_portfolio
Validate the currently loaded portfolio file.
src/state.rs:641
Methodadd_position
(&mut self, position: PortfolioPosition)
src/portfolio.rs:29
Methodall
Returns all available components
src/tui.rs:60
← previousnext →101–200 of 385, ranked by callers