@railpath/finance-toolkit
Version:
Production-ready finance library for portfolio construction, risk analytics, quantitative metrics, and ML-based regime detection
17 lines (16 loc) • 548 B
TypeScript
import { z } from 'zod';
/**
* Schema for Relative Strength Index (RSI) calculation result
*/
export declare const RSIResultSchema: z.ZodObject<{
rsi: z.ZodArray<z.ZodNumber>;
priceChanges: z.ZodArray<z.ZodNumber>;
gains: z.ZodArray<z.ZodNumber>;
losses: z.ZodArray<z.ZodNumber>;
averageGains: z.ZodArray<z.ZodNumber>;
averageLosses: z.ZodArray<z.ZodNumber>;
period: z.ZodNumber;
count: z.ZodNumber;
indices: z.ZodArray<z.ZodNumber>;
}, z.core.$strip>;
export type RSIResult = z.infer<typeof RSIResultSchema>;