Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

resolve_trade_open

cre8_app_capitalstrategy::execution::resolve_trade_open

fn · cre8-app-capitalstrategy · crates/cre8-app-capitalstrategy/src/execution.rs:1707

31lines
6cyclomatic
1max nesting
9statements
0? exits
4params
4callers
10callees
0.7 (p64)call-graph weight

Crystal

no crystal was derived for this function

Call neighbourhood

Callers left, callees right, two hops each way (4 direct callers, 10 direct callees; the heaviest shown). Dashed edges are method calls resolved by name alone.

name · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 2 sitesname · 1 sitename · 1 sitename · 3 sitesname · 3 sitesname · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 1 sitepath · 1 sitepath · 1 sitename · 2 sitesname · 1 sitename · 1 sitename · 1 sitename · 2 sitesname · 1 sitepath · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 3 sitestry_execute_with_optional_m…app-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::try_execute_with_optional_mandate_bindingtry_execute_candidateapp-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::try_execute_candidatepreview_execute_candidateapp-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::preview_execute_candidatea_trade_facing_an_open_trad…app-capitalstrategy · cc 6cre8_app_capitalstrategy::execution::tests::a_trade_facing_an_open_trade_on_the_same_asset_is_refusedtry_execute_candidate_with_…app-capitalstrategy · cc 11cre8_app_capitalstrategy::execution::try_execute_candidate_with_mandate_bindingbuild_preview_candidateapp-capitalstrategy · cc 5cre8_app_capitalstrategy::execution::build_preview_candidatenegative_ev_goes_short_only…app-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::tests::negative_ev_goes_short_only_when_shorts_are_allowedleg_plans_price_options_and…app-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::tests::leg_plans_price_options_and_perps_and_are_all_or_nothingresolve_trade_openapp-capitalstrategy · cc 6cre8_app_capitalstrategy::execution::resolve_trade_opencanonical_asset_keyapp-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::canonical_asset_keydirectional_sideapp-capitalstrategy · cc 4cre8_app_capitalstrategy::execution::directional_sidehas_leg_planapp-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::planned_legs::has_leg_planbuild_directional_legsapp-capitalstrategy · cc 3cre8_app_capitalstrategy::execution::build_directional_legsbuild_spread_legsapp-capitalstrategy · cc 8cre8_app_capitalstrategy::execution::build_spread_legsadd_fallback_directional_legapp-capitalstrategy · cc 4cre8_app_capitalstrategy::execution::add_fallback_directional_legtrade_entry_prices_and_orig…app-capitalstrategy · cc 6cre8_app_capitalstrategy::execution::trade_entry_prices_and_originbuild_portfolio_legsapp-capitalstrategy · cc 4cre8_app_capitalstrategy::execution::build_portfolio_legsnormalize_leg_weightsapp-capitalstrategy · cc 5cre8_app_capitalstrategy::execution::normalize_leg_weightsbuild_planned_legsapp-capitalstrategy · cc 2cre8_app_capitalstrategy::execution::planned_legs::build_planned_legsderivative_termsapp-capitalstrategy · cc 1cre8_app_capitalstrategy::instrument_legs::derivative_termslatest_entry_snapshotapp-capitalstrategy · cc 2cre8_app_capitalstrategy::execution::latest_entry_snapshotlatest_tick_snapshotapp-capitalstrategy · cc 6cre8_app_capitalstrategy::execution::latest_tick_snapshotfirst_string_arrayapp-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::first_string_arraystring_array_from_valueapp-capitalstrategy · cc 1cre8_app_capitalstrategy::execution::string_array_from_valueplan_legapp-capitalstrategy · cc 8cre8_app_capitalstrategy::execution::planned_legs::plan_legcandidate_asset_listapp-capitalstrategy · cc 5cre8_app_capitalstrategy::execution::candidate_asset_list

Control flow

Source not readable from this process.

Callers 4

Callees 10

Source not readable from this process.