Skip to content
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.

crates/cre8-app-capitalstrategy-model · level 4 · 2,393 lines (1,575 code) · 1 files · 47 fns (13 tests) · cyclomatic Σ 60

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
ExecutionConfig::defaultsrc/lib.rs:1386trait impl5011556.7
ObsKind::bitsrc/lib.rs:38method31703.3
DecisionEnvelope::mediumsrc/lib.rs:521method111303.1
InstrumentKind::is_optionsrc/lib.rs:983method31402.3
DecisionEnvelope::from_namesrc/lib.rs:597method81212.3
default_max_leverage_bpssrc/lib.rs:1357fn31202.2
env_stringsrc/lib.rs:93fn31312.2
CapitalStrategyProviderConfig::from_envsrc/lib.rs:78method131362
default_maintenance_margin_bpssrc/lib.rs:1361fn31101.6
default_borrow_cost_bps_per_daysrc/lib.rs:1365fn31101.6
default_greeks_max_delta_equity_fracsrc/lib.rs:1369fn31101.6
default_greeks_max_vega_equity_fracsrc/lib.rs:1373fn31101.6
env_pathsrc/lib.rs:97fn31311.6
provider_from_peer_idsrc/lib.rs:1997fn31201.4
DecisionEnvelope::defaultssrc/lib.rs:606method31371.2
obs_kind_mask_decodesrc/lib.rs:52fn41211.1
DecisionEnvelope::fastsrc/lib.rs:509method111300.9
build_provider_mapsrc/lib.rs:2007fn111310.9
CapitalStrategyProviderConfig::defaultsrc/lib.rs:72trait impl31200.8
feed_plan_path_from_envsrc/lib.rs:101fn93210.8
parse_symbolsrc/lib.rs:2002fn31200.8
ObsKind::as_u8src/lib.rs:34method31200.8
ObsKind::from_u8src/lib.rs:46method31200.8
SolverStrategy::from_namesrc/lib.rs:704method71200.8
ExecutionConfig::margin_modesrc/lib.rs:1380method33110.7
DecisionEnvelope::turbosrc/lib.rs:497method111100.6
DecisionEnvelope::slowsrc/lib.rs:533method111100.6
DecisionEnvelope::epochsrc/lib.rs:547method111100.6
DecisionEnvelope::dailysrc/lib.rs:561method111100.6
DecisionEnvelope::weeklysrc/lib.rs:575method111100.6
SolverStrategy::as_strsrc/lib.rs:712method61100.6
SolverStrategy::iter_allsrc/lib.rs:722method151100.6
clear_envsrc/lib.rs:2037fn72100.6
set_envsrc/lib.rs:2045fn51100.6
ObsKind::as_strsrc/lib.rs:42method31000.5
InstrumentKind::as_strsrc/lib.rs:973method95000.5
observation_kind_helpers_cover_all_variants_and_maskssrc/lib.rs:2052fn332040.5
provider_config_reads_defaults_and_environment_overridessrc/lib.rs:2087fn431070.5
decision_envelope_presets_aliases_and_defaults_are_stablesrc/lib.rs:2132fn312020.5
solver_strategy_aliases_names_and_iteration_are_stablesrc/lib.rs:2165fn512030.5

Outside the workspace

serde serde_json