topic: fin
69 modules sharing the fin name family (derived from the tree's prefix discipline).
The 'fin' topic family in the Nishi sovereign ecosystem focuses on financial modeling, auditing, and backtesting within a modular, binary-per-organ architecture. It integrates advanced statistical analysis through nx_fin_advstats to rigorously evaluate trading edges, supports multi-asset forward pricing via nx_fin_assets for precise valuation, and ensures transparency with nx_fin_audit to detect anomalies in financial data. These modules work in tandem to provide a robust framework for quantitative finance, balancing statistical rigor, pricing accuracy, and auditability.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| nx_fin_advstats.nx | advanced backtest statistics (the Lopez de Prado rigor that separates a real edge from | 50 | 4 |
| nx_fin_advstats_gate.nx | GATE for the deflated-Sharpe / multiple-testing suite, hand-computed. The headline: | 42 | 2 |
| nx_fin_assets.nx | multi-asset FORWARD pricing, closing the loop on the operator's original ask ("trade | 26 | 4 |
| nx_fin_assets_gate.nx | GATE for multi-asset forward pricing (tolerance, since exp is approximate). | 44 | 3 |
| nx_fin_audit.nx | R5 of THE NISHI FINANCIAL ECOSYSTEM: medical-bill OVERBILLING / anomaly audit. | 109 | 5 |
| nx_fin_audit_gate.nx | R5 GATE: proves the medical-overbilling audit is exact + data-driven, on a | 110 | 5 |
| nx_fin_backtest.nx | R2 of the trading stack: the TRUTH ENGINE. Given OHLCV bars (from nx_fin_marketdata) + | 103 | 2 |
| nx_fin_backtest_gate.nx | R2 GATE: proves the backtester on KNOWN bars + a KNOWN signal, with EVERY metric | 59 | 2 |
| nx_fin_bs.nx | OPTIONS pricing (Black-Scholes) in integer fixed-point (scale 1e6 = "micro"), the hard | 93 | 9 |
| nx_fin_bs_gate.nx | GATE for the fixed-point Black-Scholes suite. Approximations, so checked within a | 52 | 2 |
| nx_fin_census.nx | HONEST HAVE-vs-GAP census for the NISHI MARKETS-INVESTING / TRADING stack (the "finmkt" | 76 | 3 |
| nx_fin_competitor_census.nx | S-CLASS-EXCEED census: measure the Nishi trading+tax+grants stack against the | 81 | 3 |
| nx_fin_dashboard.nx | emit the static nishifamily.com/finance dashboard to the staging media dir, so | 28 | 3 |
| nx_fin_dashboard_gate.nx | GATE for the finance dashboard: proves the page is SOVEREIGN zero-JS (no | 127 | 5 |
| nx_fin_datasource.nx | the DATA-ACQUISITION doctrine as verified logic: how to get raw financial data LEGALLY | 44 | 5 |
| nx_fin_datasource_gate.nx | GATE for the data-acquisition doctrine: free classification, cheapest-legal | 50 | 2 |
| nx_fin_dispute.nx | R8 (fail-safe execute) of THE NISHI FINANCIAL ECOSYSTEM: turn audit findings into | 95 | 7 |
| nx_fin_dispute_gate.nx | R8 GATE: proves the audit findings (R5) flow into a correct, complete medical- | 113 | 7 |
| nx_fin_edgar_fetch.nx | FREE_RAW in action: pull REAL company fundamentals straight from SEC EDGAR | 84 | 7 |
| nx_fin_extract.nx | RUNG 2 of THE NISHI FINANCIAL ECOSYSTEM researcher: EXTRACT stage. | 144 | 6 |
| nx_fin_finance.nx | R7 (financing-cost optimizer) of THE NISHI FINANCIAL ECOSYSTEM: find AFFORDABLE | 86 | 6 |
| nx_fin_finance_gate.nx | R7 GATE: proves the financing-cost optimizer ranks REAL options by TRUE total | 98 | 5 |
| nx_fin_fund_research_fetch.nx | the Nishi RESEARCHER's sovereign fetch for AFFORDABLE / ALTERNATIVE / | 86 | 5 |
| nx_fin_grant.nx | R8 (Nishi Grants): pull in NON-DILUTIVE cash. Eligibility screening for SBIR/STTR (US | 51 | 5 |
| nx_fin_grant_gate.nx | GATE for the grants arm: SBIR/STTR eligibility (pass + each failing condition), | 42 | 2 |
| nx_fin_ledger.nx | R2 of THE NISHI FINANCIAL ECOSYSTEM: the content-addressed, append-only, | 401 | 17 |
| nx_fin_ledger_gate.nx | R2 GATE: proves the double-entry ledger is exact, append-only, idempotent, | 134 | 4 |
| nx_fin_liquidity.nx | the market-IMPACT model: finer than R1's flat ADV cap. Uses the square-root impact law | 30 | 3 |
| nx_fin_liquidity_gate.nx | GATE for the square-root market-impact model: impact scales with sqrt(size), | 35 | 2 |
| nx_fin_marketdata.nx | R1 of the trading stack: the PRICE + LIQUIDITY sensor's CORE. Pure, deterministic | 110 | 8 |
| nx_fin_marketdata_fetch.nx | MAKE IT REAL: the live ingestion adapter + end-to-end demo. Fetches a symbol's | 172 | 8 |
| nx_fin_marketdata_gate.nx | R1 GATE: proves the OHLCV parser + ADV/capacity math on KNOWN bytes (no network, | 48 | 2 |
| nx_fin_md_probe.nx | ground-truth probe: is the finance dashboard actually LIVE on the public edge? | 39 | 4 |
| nx_fin_member.nx | NISHI FINANCE joins the team: registers the `finance` DOMAIN into THE NISHI BUILDER | 43 | 4 |
| nx_fin_member_gate.nx | proves Nishi Finance is registered in THE NISHI BUILDER: the finance domain has | 52 | 3 |
| nx_fin_metrics.nx | risk-adjusted performance metrics, i64 fixed-point, NO floats. Provides the integer | 52 | 7 |
| nx_fin_metrics_gate.nx | GATE for the risk-adjusted metrics on a hand-computed returns series (bps): | 44 | 2 |
| nx_fin_mgmt_grade.nx | R-MKT5 of the MARKETS-INVESTING arc: GRADE THE PEOPLE running a company (operator: | 55 | 2 |
| nx_fin_mgmt_grade_gate.nx | proves the management-stewardship grader ("handicap the team"): each of the 8 | 68 | 4 |
| nx_fin_microcap.nx | the 1000-MICROCAP FUNNEL: screen a universe of small names down to the few worth | 43 | 2 |
| nx_fin_microcap_gate.nx | GATE for the microcap funnel: one PASS plus each reject gate fired in isolation, | 44 | 2 |
| nx_fin_optimizer.nx | portfolio OPTIMIZATION, analytic (no matrix inverse needed): the closed-form | 60 | 4 |
| nx_fin_optimizer_gate.nx | GATE for the analytic mean-variance optimizer, hand-computed. Exits 0 iff all pass. | 53 | 2 |
| nx_fin_paper.nx | R5: PAPER / forward simulation = the OVERFIT CHECK before any capital. Splits the bar | 38 | 3 |
| nx_fin_paper_gate.nx | R5 GATE: proves the in-sample/out-of-sample split, the OOS-only backtest run, and the | 52 | 2 |
| nx_fin_pbo.nx | Probability of Backtest Overfitting (Bailey/Lopez de Prado CSCV). Completes the overfit- | 48 | 3 |
| nx_fin_pbo_gate.nx | GATE for PBO/CSCV, hand-computed. 3 strategies x 4 groups: strategy 0 is the OVERFIT | 41 | 2 |
| nx_fin_portfolio.nx | portfolio construction / DIVERSIFICATION: allocate across many names so NO single | 51 | 6 |
| nx_fin_portfolio_gate.nx | GATE for portfolio construction: equal/score weighting with concentration caps, | 51 | 2 |
| nx_fin_reality_check.nx | BRUTALLY HONEST competitive standing. The 720/760-permille census measured a NARROW | 81 | 4 |
| nx_fin_research_fetch.nx | the Nishi RESEARCHER's sovereign web-fetch for THE NISHI FINANCIAL ECOSYSTEM arc. | 277 | 5 |
| nx_fin_risk_engine.nx | R4: POSITION SIZING + drawdown circuit breaker = the real answer to "don't blow up". | 52 | 6 |
| nx_fin_risk_engine_gate.nx | R4 GATE: proves the sizers + circuit breaker on hand-computed values (no | 43 | 2 |
| nx_fin_route_gate.nx | proves nishifamily.com/finance is correctly served BEHIND THE OPAQUE WALL. | 166 | 8 |
| nx_fin_rules.nx | R6 of THE NISHI FINANCIAL ECOSYSTEM: the SOVEREIGN RULE-PACK STORE. This is what | 74 | 5 |
| nx_fin_rules_gate.nx | R6 GATE: proves the audit rule packs round-trip through the sovereign seg-store | 133 | 5 |
| nx_fin_serve.nx | standalone loopback HTTP server for the finance dashboard. Composes nx_http_server | 108 | 10 |
| nx_fin_spine_gate.nx | THE FINANCE SPINE WITNESS. One organ that re-proves the load-bearing | 158 | 6 |
| nx_fin_stack_page.nx | SURFACE the sovereign financial stack in a gorgeous, S-class page (composes | 98 | 1 |
| nx_fin_strategy.nx | R3: the SIGNAL generator (produces the long/flat signals the R2 backtester consumes). | 88 | 6 |
| nx_fin_strategy_gate.nx | R3 GATE: proves the SMA signal generator on known bars, then runs the FULL LOOP | 72 | 2 |
| nx_fin_taxlot.nx | R7 (Nishi Accounting): tax-lot accounting = the machinery to PARK gains legally. Exact | 57 | 6 |
| nx_fin_taxlot_gate.nx | GATE for tax-lot accounting: exact holding-period days across a leap year, short/long | 43 | 2 |
| nx_fin_taxopt.nx | R7 tax-OPTIMIZATION / entity modeling = "park gains like the big companies", LEGALLY. | 48 | 7 |
| nx_fin_taxopt_gate.nx | GATE for tax optimization: ยง1202 QSBS exclusion (floor vs 10x-basis, holding-period | 38 | 2 |
| nx_fin_universe.nx | the UNIVERSE-SELECTION brain: given a scored candidate set (one row per symbol, each | 44 | 3 |
| nx_fin_universe_gate.nx | GATE for the universe-selection brain. 4 candidates: c0 passes all gates, c1 has | 54 | 2 |
| nx_fin_zscore.nx | R-MKT1 of the MARKETS-INVESTING finance arc: the ALTMAN Z-SCORE, a distress/bankruptcy | 41 | 2 |
| nx_fin_zscore_gate.nx | proves the Altman Z-score engine: exact x1000 score from raw figures + correct | 62 | 4 |