@railpath/finance-toolkit
Version:
Production-ready finance library for portfolio construction, risk analytics, quantitative metrics, and ML-based regime detection
27 lines (26 loc) • 634 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EqualWeightResultSchema = void 0;
const zod_1 = require("zod");
exports.EqualWeightResultSchema = zod_1.z.object({
/**
* Equal weight for each asset (1/N)
*/
equalWeight: zod_1.z.number(),
/**
* Array of portfolio weights
*/
weights: zod_1.z.array(zod_1.z.number()),
/**
* Number of assets
*/
numberOfAssets: zod_1.z.number(),
/**
* Sum of all weights
*/
totalWeight: zod_1.z.number(),
/**
* Whether weights sum to exactly 1
*/
sumTo1: zod_1.z.boolean(),
});