service: add kucoin_klines to backtest insert table mapping

This commit is contained in:
c9s 2021-12-26 02:40:13 +08:00
parent f72221e804
commit cf6da76ef0
2 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,7 @@ func (e KLineBatchQuery) Query(ctx context.Context, symbol string, interval type
}
if tryQueryKlineTimes > 10 { // it means loop 10 times
errC <- errors.Errorf("There's a dead loop in batch.go#Query , symbol: %s , interval: %s, startTime :%s ", symbol, interval, startTime.String())
errC <- errors.Errorf("there's a dead loop in batch.go#Query , symbol: %s , interval: %s, startTime :%s ", symbol, interval, startTime.String())
return
}
}

View File

@ -284,6 +284,8 @@ func (s *BacktestService) _targetKlineTable(exchangeName types.ExchangeName) str
return "max_klines"
case types.ExchangeOKEx:
return "okex_klines"
case types.ExchangeKucoin:
return "kucoin_klines"
default:
return "klines"
}