mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
xdepthmaker: improve fixer logging
This commit is contained in:
parent
4bed29ad02
commit
26c34618b2
|
@ -51,8 +51,10 @@ func (f *ProfitFixer) Fix(ctx context.Context, since, until time.Time, stats *ty
|
|||
var allTrades = make([]types.Trade, 0, 1000)
|
||||
|
||||
g, subCtx := errgroup.WithContext(ctx)
|
||||
for _, service := range f.sessions {
|
||||
for n, service := range f.sessions {
|
||||
sessionName := n
|
||||
g.Go(func() error {
|
||||
log.Infof("batch querying %s trade history from %s since %s until %s", f.market.Symbol, sessionName, since.String(), until.String())
|
||||
trades, err := f.batchQueryTrades(subCtx, service, f.market.Symbol, since, until)
|
||||
if err != nil {
|
||||
log.WithError(err).Errorf("unable to batch query trades for fixer")
|
||||
|
|
Loading…
Reference in New Issue
Block a user