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 }