UNPKG

@backtest/framework

Version:

Backtesting trading strategies in TypeScript / JavaScript

11 lines 410 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getIntervals = getIntervals; exports.isValidInterval = isValidInterval; function getIntervals() { return ['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h', '6h', '8h', '12h', '1d', '3d', '1w', '1M']; } function isValidInterval(interval) { return getIntervals().includes(interval); } //# sourceMappingURL=common.js.map