optimizer: move klines to shared/

This commit is contained in:
Andy Cheng 2022-06-13 13:14:39 +08:00
parent 70d6d8f5db
commit 8f18b414b6
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ const removeDuplicatedKLines = (klines: Array<KLine>): Array<KLine> => {
function fetchKLines(basePath: string, runID: string, symbol: string, interval: string) { function fetchKLines(basePath: string, runID: string, symbol: string, interval: string) {
return fetch( return fetch(
`${basePath}/klines/${symbol}-${interval}.tsv`, `${basePath}/shared/klines/${symbol}-${interval}.tsv`,
) )
.then((response) => response.text()) .then((response) => response.text())
.then((data) => tsvParse(data, parseKline())) .then((data) => tsvParse(data, parseKline()))

View File

@ -295,7 +295,7 @@ var BacktestCmd = &cobra.Command{
return err return err
} }
kLineDataDir := filepath.Join(outputDirectory, "klines") kLineDataDir := filepath.Join(outputDirectory, "shared/klines")
if err := util.SafeMkdirAll(kLineDataDir); err != nil { if err := util.SafeMkdirAll(kLineDataDir); err != nil {
return err return err
} }