mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
increase batch insert size to 1000 for klines
Signed-off-by: c9s <yoanlin93@gmail.com>
This commit is contained in:
parent
bf0186cf55
commit
6e562e2ede
|
@ -29,9 +29,10 @@ riskControls:
|
|||
backtest:
|
||||
startTime: "2020-09-04"
|
||||
endTime: "2020-09-14"
|
||||
sessions:
|
||||
- binance
|
||||
symbols:
|
||||
- BTCUSDT
|
||||
- ETHUSDT
|
||||
- LINKUSDT
|
||||
account:
|
||||
binance:
|
||||
balances:
|
||||
|
|
|
@ -52,7 +52,7 @@ func (s *BacktestService) SyncKLineByInterval(ctx context.Context, exchange type
|
|||
q := &batch.KLineBatchQuery{Exchange: exchange}
|
||||
return q.Query(ctx, symbol, interval, startTime, endTime)
|
||||
},
|
||||
BatchInsertBuffer: 500,
|
||||
BatchInsertBuffer: 1000,
|
||||
BatchInsert: func(obj interface{}) error {
|
||||
kLines := obj.([]types.KLine)
|
||||
return s.BatchInsert(kLines)
|
||||
|
|
Loading…
Reference in New Issue
Block a user