1.27K
total weekly downloads
20 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.
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.
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.
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.
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.
treasury-bill-yield
US Treasury bill yield math — discount rate ↔ price ↔ bond-equivalent yield (investment rate), money-market yield. Treasury's own formulas incl. the half-year (>183-day) quadratic and Feb-29 year basis. Zero dependencies.
treasurydirect
Typed, zero-dependency client for the US Treasury's free public APIs — auction results, upcoming auctions, security lookups by CUSIP, and Debt to the Penny. No API key required.
treasury-fiscaldata
Typed, zero-dependency client for the US Treasury FiscalData API — Debt to the Penny, average interest rates, exchange rates, and any endpoint with typed pagination, sorting, and filtering. No API key required.
us-equity-market-calendar
NYSE / NASDAQ trading calendar — holidays (incl. Good Friday & Juneteenth), 1pm early closes, trading-day navigation, and DST-aware is-market-open. Algorithmic, zero dependencies.