Skip to content
1 viewer

rust 1,847,280 · typescript 232,434 · javascript 131,101 · python 19,227 · 6,362 files · digest 755e2ee30522 · built in 2.3 s · crystals off

cre8-app-paper paper cargo crate

PaperApp: per-user paper trading accounts filled against live venue depth, internal books and option marks, with leverage, funding, expiry and liquidation; plus owner-gated, default-off routing to venue paper/testnet APIs. Paper never moves value.

crates/cre8-app-paper · level 17 · 6,350 lines (5,357 code) · 13 files · 293 fns (62 tests) · cyclomatic Σ 661

18workspace deps
0direct dependents
0transitive dependents
268calls out
0calls in
213call-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

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). 293 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
minor_scalesrc/model.rs:388fn311003.2
hmac_sha256src/venue.rs:299fn51213
cleansrc/authority.rs:37fn31402.5
resolvesrc/instrument.rs:63fn35121422.1
nowsrc/tests.rs:34fn311112.1
ratio_from_f64src/pricing.rs:83fn63722
is_usd_familysrc/instrument.rs:198fn31301.9
same_identitysrc/authority.rs:41fn42311.8
PaperConfig::defaultsrc/model.rs:643trait impl91501.8
text_fieldsrc/venue.rs:377fn74301.8
minor_labelsrc/model.rs:400fn123211.7
hmac_sha256_hexsrc/venue.rs:306fn31411.6
adapterssrc/venue.rs:184fn31401.6
PaperConfig::from_envsrc/model.rs:655method171931.4
gatesrc/authority.rs:123fn81501.4
load_accountsrc/model.rs:548fn311121.4
internalsrc/instrument.rs:99fn282111.4
externalsrc/instrument.rs:128fn507161.4
CallerAuthority::identitysrc/authority.rs:58method94211.4
account_vertex_idsrc/model.rs:521fn31211.3
CallerAuthority::authorize_accountsrc/authority.rs:84method198741.3
ratio_labelsrc/model.rs:414fn311111.3
require_idsrc/model.rs:537fn32401.3
moneysrc/view.rs:56fn31511.3
SignedRequest::headersrc/venue.rs:112method31401.3
apply_tradesrc/engine.rs:169fn911210101.2
hmac_sha256_base64src/venue.rs:311fn31111.2
split_usd_pairsrc/instrument.rs:204fn148311.2
check_requestsrc/venue.rs:259fn164321.2
with_labelsrc/connection.rs:130fn62901.2
fresh_idsrc/model.rs:516fn41611.1
textsrc/connection.rs:111fn31801.1
decimalsrc/venue.rs:315fn62121.1
now_mssrc/connection.rs:107fn31811.1
widensrc/pricing.rs:95fn82521.1
encodesrc/venue.rs:346fn114101.1
valuationsrc/engine.rs:65fn265661.1
accountsrc/engine.rs:420fn231811
credssrc/venue.rs:717fn71611
ordersrc/venue.rs:725fn101621

Outside the workspace

anyhow base64 hex hmac hyperdb serde serde_json sha2