mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
service: add kucoin_klines to backtest insert table mapping
This commit is contained in:
parent
f72221e804
commit
cf6da76ef0
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user