1 viewer
rust 1,854,395 · typescript 233,161 · javascript 131,995 · python 19,227 · 6,379 files · digest 17dcda71e44b · built in 1.5 s · crystals off
cre8-app-capitalstrategy-model capitalstrategy cargo crate
Shared CapitalStrategy types — signals, overlays, scoring structures (read-only projections over matching state). Lifted from the old root capitalstrategy model.
1workspace deps
2direct dependents
68transitive dependents
3calls out
36calls in
55.1call-graph weight
0.0%exact crystals
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Files
lowhigh
Heaviest functions
By call-graph weight (PageRank; 1.0 is the average function). 47 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| ExecutionConfig::defaultsrc/lib.rs:1386 | trait impl | 50 | 1 | 15 | 5 | 6.7 | |
| ObsKind::bitsrc/lib.rs:38 | method | 3 | 1 | 7 | 0 | 3.3 | |
| DecisionEnvelope::mediumsrc/lib.rs:521 | method | 11 | 1 | 3 | 0 | 3.1 | |
| InstrumentKind::is_optionsrc/lib.rs:983 | method | 3 | 1 | 4 | 0 | 2.3 | |
| DecisionEnvelope::from_namesrc/lib.rs:597 | method | 8 | 1 | 2 | 1 | 2.3 | |
| default_max_leverage_bpssrc/lib.rs:1357 | fn | 3 | 1 | 2 | 0 | 2.2 | |
| env_stringsrc/lib.rs:93 | fn | 3 | 1 | 3 | 1 | 2.2 | |
| CapitalStrategyProviderConfig::from_envsrc/lib.rs:78 | method | 13 | 1 | 3 | 6 | 2 | |
| default_maintenance_margin_bpssrc/lib.rs:1361 | fn | 3 | 1 | 1 | 0 | 1.6 | |
| default_borrow_cost_bps_per_daysrc/lib.rs:1365 | fn | 3 | 1 | 1 | 0 | 1.6 | |
| default_greeks_max_delta_equity_fracsrc/lib.rs:1369 | fn | 3 | 1 | 1 | 0 | 1.6 | |
| default_greeks_max_vega_equity_fracsrc/lib.rs:1373 | fn | 3 | 1 | 1 | 0 | 1.6 | |
| env_pathsrc/lib.rs:97 | fn | 3 | 1 | 3 | 1 | 1.6 | |
| provider_from_peer_idsrc/lib.rs:1997 | fn | 3 | 1 | 2 | 0 | 1.4 | |
| DecisionEnvelope::defaultssrc/lib.rs:606 | method | 3 | 1 | 3 | 7 | 1.2 | |
| obs_kind_mask_decodesrc/lib.rs:52 | fn | 4 | 1 | 2 | 1 | 1.1 | |
| DecisionEnvelope::fastsrc/lib.rs:509 | method | 11 | 1 | 3 | 0 | 0.9 | |
| build_provider_mapsrc/lib.rs:2007 | fn | 11 | 1 | 3 | 1 | 0.9 | |
| CapitalStrategyProviderConfig::defaultsrc/lib.rs:72 | trait impl | 3 | 1 | 2 | 0 | 0.8 | |
| feed_plan_path_from_envsrc/lib.rs:101 | fn | 9 | 3 | 2 | 1 | 0.8 | |
| parse_symbolsrc/lib.rs:2002 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| ObsKind::as_u8src/lib.rs:34 | method | 3 | 1 | 2 | 0 | 0.8 | |
| ObsKind::from_u8src/lib.rs:46 | method | 3 | 1 | 2 | 0 | 0.8 | |
| SolverStrategy::from_namesrc/lib.rs:704 | method | 7 | 1 | 2 | 0 | 0.8 | |
| ExecutionConfig::margin_modesrc/lib.rs:1380 | method | 3 | 3 | 1 | 1 | 0.7 | |
| DecisionEnvelope::turbosrc/lib.rs:497 | method | 11 | 1 | 1 | 0 | 0.6 | |
| DecisionEnvelope::slowsrc/lib.rs:533 | method | 11 | 1 | 1 | 0 | 0.6 | |
| DecisionEnvelope::epochsrc/lib.rs:547 | method | 11 | 1 | 1 | 0 | 0.6 | |
| DecisionEnvelope::dailysrc/lib.rs:561 | method | 11 | 1 | 1 | 0 | 0.6 | |
| DecisionEnvelope::weeklysrc/lib.rs:575 | method | 11 | 1 | 1 | 0 | 0.6 | |
| SolverStrategy::as_strsrc/lib.rs:712 | method | 6 | 1 | 1 | 0 | 0.6 | |
| SolverStrategy::iter_allsrc/lib.rs:722 | method | 15 | 1 | 1 | 0 | 0.6 | |
| clear_envsrc/lib.rs:2037 | fn | 7 | 2 | 1 | 0 | 0.6 | |
| set_envsrc/lib.rs:2045 | fn | 5 | 1 | 1 | 0 | 0.6 | |
| ObsKind::as_strsrc/lib.rs:42 | method | 3 | 1 | 0 | 0 | 0.5 | |
| InstrumentKind::as_strsrc/lib.rs:973 | method | 9 | 5 | 0 | 0 | 0.5 | |
| observation_kind_helpers_cover_all_variants_and_maskssrc/lib.rs:2052 | fn | 33 | 2 | 0 | 4 | 0.5 | |
| provider_config_reads_defaults_and_environment_overridessrc/lib.rs:2087 | fn | 43 | 1 | 0 | 7 | 0.5 | |
| decision_envelope_presets_aliases_and_defaults_are_stablesrc/lib.rs:2132 | fn | 31 | 2 | 0 | 2 | 0.5 | |
| solver_strategy_aliases_names_and_iteration_are_stablesrc/lib.rs:2165 | fn | 51 | 2 | 0 | 3 | 0.5 |
Outside the workspace
serde serde_json