UNPKG

@backtest/framework

Version:

Backtesting trading strategies in TypeScript / JavaScript

12 lines 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exportFileCSV = exportFileCSV; const csv_1 = require("../../helpers/csv"); const error_1 = require("../../helpers/error"); async function exportFileCSV(name, rootPath = './csv') { if (!name) { throw new error_1.BacktestError('Name is required', error_1.ErrorCode.MissingInput); } return (0, csv_1.exportCSV)(name, rootPath); } //# sourceMappingURL=export-csv.js.map