UNPKG

@railpath/finance-toolkit

Version:

Production-ready finance library for portfolio construction, risk analytics, quantitative metrics, and ML-based regime detection

11 lines (10 loc) 400 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BetaOptionsSchema = void 0; const zod_1 = require("zod"); exports.BetaOptionsSchema = zod_1.z.object({ assetReturns: zod_1.z.array(zod_1.z.number()).min(2, 'Need at least 2 asset returns'), benchmarkReturns: zod_1.z .array(zod_1.z.number()) .min(2, 'Need at least 2 benchmark returns'), });