trading-signals
Version:
Technical indicators to run technical analysis with JavaScript / TypeScript.
8 lines • 352 B
JavaScript
export class NotEnoughDataError extends Error {
constructor(requiredAmount) {
super(`Not enough data. A minimum of "${requiredAmount}" inputs is required to perform the computation.`);
Object.setPrototypeOf(this, new.target.prototype);
this.name = 'NotEnoughDataError';
}
}
//# sourceMappingURL=NotEnoughDataError.js.map