1.44K
total weekly downloads
30 packages
32nds
US Treasury price math — parse and format 32nds quotes (105-16+), ticks, and basis points. Zero dependencies, exact IEEE 754 arithmetic.
accrued-interest
Bond accrued interest between coupon dates — ACT/ACT-ICMA (US Treasuries), 30/360, ACT/360, and more. Zero dependencies, verified against TreasuryDirect's published figures.
benchmyrepo
Benchmark the coding agents you already have on your own repo's merged PRs. Local, one command.
commitments-of-traders
Typed, zero-dependency client for the CFTC Commitments of Traders (COT) reports — Legacy, Disaggregated, and Traders in Financial Futures, futures-only or combined, via the official Socrata API. No API key required.
compounded-sofr
SOFR / risk-free-rate compounding-in-arrears math — ARRC & ISDA conventions (lookback, observation shift, lockout), the SOFR Index method, and the compounded average. Reproduces the NY Fed's published values. Zero dependencies.
day-count-conventions
ISDA day-count conventions — 30/360, 30E/360, 30E/360-ISDA, 30U/360, ACT/360, ACT/365F, ACT/ACT-ISDA, ACT/ACT-ICMA, ACT/ACT-AFB, BUS/252. Zero dependencies, cross-checked against QuantLib.
dicta-nakdan
Typed, zero-dependency client for Dicta's free Nakdan API — automatic Hebrew vocalization (niqqud) with per-word alternatives. Add nikud to unpointed Hebrew text.
exit-waterfall
Startup exit waterfall math — liquidation preference stacks (seniority/pari passu, Nx multiples), participating vs non-participating with caps, and the convert-or-not equilibrium. Zero dependencies.
futures-calendar
CME Group futures calendar — month codes, contract-symbol parsing (ESZ5, CLF26), last-trade dates from each exchange's termination rule for ES, NQ, CL, NG, GC, ZN, 6E, ZC, BTC and more, plus front-month and roll dates.
fx-forward-math
FX trading conventions math — forward points ↔ outright forwards, covered-interest-parity forwards and implied yields (ACT/360 vs ACT/365F per currency), cross-rate derivation, triangular-arbitrage checks, pip / big-figure handling, and pip value. Zero de
fx-value-date
FX settlement / value-date calculation — spot (T+2 / T+1), tom, forward tenors across two currency holiday calendars, with per-currency spot counting, the USD T+1 rule, modified-following, and the end-end rule. Zero dependencies (calendars injected).
hagan-sabr
The SABR stochastic-volatility model — Hagan (2002) lognormal & normal implied-vol expansions, shifted SABR for negative rates, the Obłój correction, and (alpha, rho, nu) smile calibration. Matches QuantLib. Zero dependencies.
instrument-identifiers
Securities identifier math in one package — validate, parse, and compute check digits for CUSIP, ISIN, SEDOL, FIGI, and LEI, plus CUSIP→ISIN and SEDOL→ISIN conversion. Zero dependencies.
mispar
Hebrew gematria with all the classical methods — hechrachi, gadol, katan, siduri, katan mispari, perati, meshulash, kidmi, bone'eh, ha'akhor, milui, atbash, albam — plus Hebrew numerals (ה׳תשפ״ו) both ways. Zero dependencies.
newyorkfed
Typed, zero-dependency client for the NY Fed's free Markets Data API — SOFR, EFFR, OBFR, BGCR, TGCR reference rates, SOFR averages & index, SOMA holdings. No API key required.
options-expiration
US listed options expiration dates — monthly third-Friday, weekly, 0DTE, quarterly, end-of-month and VIX expiries, shifted correctly for exchange holidays (Good Friday, Juneteenth), plus early-close-aware time to expiry.
options-greeks
Black-Scholes-Merton (with dividend yield) and Black-76 option prices, greeks (delta, gamma, vega, theta, rho, vanna, charm, vomma) and a robust implied-volatility solver. Double-precision normal CDF, zero dependencies.
perp-funding-math
Perpetual-futures funding math — the funding-rate formula (premium index, interest, clamp, caps), payments (longs-pay-shorts convention), APR/APY annualization for any interval, cumulative funding, cross-venue funding-arb carry and breakeven. Zero depende
priced-round-math
Priced venture-round dilution math — the option-pool shuffle (solve the pre-money pool top-up for a post-close target), price per share, investor shares, ownership tables. Zero dependencies.
reg-z-apr
US Truth in Lending APR — the Regulation Z (12 CFR 1026) Appendix J actuarial method: general-equation solver, date-to-unit-period rules, odd-days fractions, multiple advances, Reg Z accuracy tolerance. Verified against every Appendix J worked example. Ze
rmd-uniform-lifetime
IRS Required Minimum Distribution (RMD) math — the Uniform Lifetime, Single Life and Joint & Last Survivor tables (26 CFR 1.401(a)(9)-9, 2022+) plus 70½/SECURE/SECURE 2.0 required-beginning-date logic. Zero dependencies.
safe-stack-conversion
Convert a stack of YC SAFEs (post-money & pre-money) and convertible notes into a pro-forma cap table at a priced round — exact solve, cap/discount/round best-price, option-pool increase, interest accrual. Zero dependencies.
sifma-holidays
US bond-market holidays, early closes, and settlement dates per SIFMA recommendations. The fixed-income calendar (Columbus Day, Veterans Day, 2pm early closes) — not the stock market's. Zero dependencies.
svi-vol-surface
Gatheral SVI implied-volatility surface — raw/natural/jump-wings parametrizations and conversions, total variance, butterfly & calendar arbitrage checks, and quasi-explicit smile calibration. Zero dependencies.
tips-index-ratio
US TIPS inflation math per 31 CFR 356 Appendix B — reference-CPI interpolation, index ratios, inflation-adjusted principal and interest, deflation floor. Reproduces TreasuryDirect's published values. Zero dependencies.