code wiki / (root) / nx_fin_assets_gate.nx

nx_fin_assets_gate.nx

buildroot/runtime/nx_fin_assets_gate.nx

2474 B44 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_assets_gate.nx -- GATE for multi-asset forward pricing (tolerance, since exp is approximate). Gold-like future: spot $100, r 5%, no carry, 1y -> F = 100*e^.05 = $105.13. FX: 1.10, dom 5% / for 3%, 1y -> F = 1.10*e^.02 = 1.1222. Exits 0 iff all pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_gate.nx nx_fin_bs.nx nx_fin_assets.nx nx_fin_assets_gate.nx

imports: nx_gate.nxnx_fin_bs.nxnx_fin_assets.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main af_futures_fwd exp_fp chk_near gw sys_write gn sys_write ↻ sys_mmap af_basis chk gw ↻ gn ↻ af_contango af_fx_fwd exp_fp ↻ gw ↻ gn ↻

structs

none

consts

none

functions

8func chk_near(name: *u8, got: i64, want: i64, tol: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
14func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
20func main() -> i64