From 8f18b414b6789a06f1ce800fd0a555023cdc8f46 Mon Sep 17 00:00:00 2001 From: Andy Cheng Date: Mon, 13 Jun 2022 13:14:39 +0800 Subject: [PATCH] optimizer: move klines to shared/ --- apps/backtest-report/components/TradingViewChart.tsx | 2 +- pkg/cmd/backtest.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backtest-report/components/TradingViewChart.tsx b/apps/backtest-report/components/TradingViewChart.tsx index 447ed0a9d..bd3edef5b 100644 --- a/apps/backtest-report/components/TradingViewChart.tsx +++ b/apps/backtest-report/components/TradingViewChart.tsx @@ -211,7 +211,7 @@ const removeDuplicatedKLines = (klines: Array): Array => { function fetchKLines(basePath: string, runID: string, symbol: string, interval: string) { return fetch( - `${basePath}/klines/${symbol}-${interval}.tsv`, + `${basePath}/shared/klines/${symbol}-${interval}.tsv`, ) .then((response) => response.text()) .then((data) => tsvParse(data, parseKline())) diff --git a/pkg/cmd/backtest.go b/pkg/cmd/backtest.go index 0acc5baed..44aa23caf 100644 --- a/pkg/cmd/backtest.go +++ b/pkg/cmd/backtest.go @@ -295,7 +295,7 @@ var BacktestCmd = &cobra.Command{ return err } - kLineDataDir := filepath.Join(outputDirectory, "klines") + kLineDataDir := filepath.Join(outputDirectory, "shared/klines") if err := util.SafeMkdirAll(kLineDataDir); err != nil { return err }