mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
optimizer: move klines to shared/
This commit is contained in:
parent
70d6d8f5db
commit
8f18b414b6
|
@ -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()))
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user