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

cre8-util-options crates cargo crate

Options, futures and margin math for the CRE8 capital stack: exact i128 rationals and settlement (payouts floored, collateral ceiled, overflow refused), Black-Scholes-Merton and Black-76 with greeks, implied vol, CRR binomial trees, multi-leg payoffs, perp funding accrual and margin/liquidation helpers. Pure: no runtime dependencies.

crates/cre8-util-options · level 0 · 3,104 lines (2,350 code) · 11 files · 200 fns (63 tests) · cyclomatic Σ 479

0workspace deps
5direct dependents
16transitive dependents
0calls out
215calls in
290call-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.

normal dep · 16 calls · source referencenormal dep · 4 calls · source referencenormal dep · 37 calls · source referencenormal dep · 46 calls · source referencenormal dep · 112 calls · source referenceutil-optionsL0 · 2,350 linescre8-util-optionsapp-capitalstrategyL19 · 85,927 linescre8-app-capitalstrategyapp-creditL11 · 4,755 linescre8-app-creditapp-derivativesL18 · 4,175 linescre8-app-derivativesapp-markL17 · 2,346 linescre8-app-markapp-paperL18 · 5,382 linescre8-app-paper

Files

lowhigh

File call graph

Resolved calls between this crate's files, callers left of callees.

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 200 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
Ratio::newsrc/ratio.rs:28method16337217.7
gcd_u128src/ratio.rs:608fn622012
Ratio::is_positivesrc/ratio.rs:67method3137011.2
signed_from_magnitudesrc/ratio.rs:508fn1133010.6
Ratio::checked_mulsrc/ratio.rs:111method1231829.3
Ratio::from_integersrc/ratio.rs:46method315509.2
mul_div_roundsrc/ratio.rs:566fn187236.5
pricesrc/bsm.rs:118fn2651645.6
mul_widesrc/ratio.rs:468fn131305.6
gcd_i128src/ratio.rs:617fn31314.7
Ratio::checked_negsrc/ratio.rs:79method611104.7
Ratio::from_decimal_strsrc/ratio.rs:225method2691234.3
mul_div_ceilsrc/ratio.rs:528fn31313.7
pow10src/ratio.rs:621fn31303.4
Ratio::to_decimal_stringsrc/ratio.rs:254method336923.4
mul_div_floorsrc/ratio.rs:522fn31413.3
inputs_validsrc/bsm.rs:98fn119603.1
divrem_widesrc/ratio.rs:483fn247203.1
cmp_productssrc/ratio.rs:586fn217213
Leg::value_atsrc/payoff.rs:56method73203
tree_pricesrc/binomial.rs:64fn6312232.9
Ratio::to_f64src/ratio.rs:159method711302.9
intrinsicsrc/bsm.rs:199fn62302.8
erfcsrc/normal.rs:131fn114322.8
Ratio::floor_mulsrc/ratio.rs:148method31812.6
cdfsrc/normal.rs:151fn31612.5
mul_div_rem_truncsrc/ratio.rs:540fn195532.5
Leg::profit_atsrc/payoff.rs:65method31112.3
Ratio::ceil_mulsrc/ratio.rs:154method31612.2
exp_neg_sqsrc/normal.rs:72fn51102.2
payoff_atsrc/payoff.rs:71fn31412.2
intrinsic_per_unitsrc/settle.rs:65fn104712.1
d1_d2src/bsm.rs:111fn51302
cmp_mulsrc/ratio.rs:562fn31312
pricesrc/black76.rs:12fn31612
Ratio::checked_abssrc/ratio.rs:86method32912
erf_smallsrc/normal.rs:79fn113202
erfc_positivesrc/normal.rs:92fn235212
intervals_per_yearsrc/funding.rs:129fn31301.9
Ratio::checked_mul_intsrc/ratio.rs:130method31921.9

Outside the workspace

serde serde_json