drop legacy backtest trader

This commit is contained in:
c9s 2020-10-12 22:51:13 +08:00
parent 4c20c9f4ff
commit 26f97b43e8

View File

@ -2,13 +2,9 @@ package bbgo
import (
"context"
"fmt"
"github.com/sirupsen/logrus"
"github.com/c9s/bbgo/pkg/accounting"
"github.com/c9s/bbgo/pkg/types"
"github.com/c9s/bbgo/pkg/util"
)
type BackTestStream struct {
@ -37,6 +33,7 @@ func (trader *BackTestTrader) SubmitOrder(cxt context.Context, order *types.Subm
trader.pendingOrders = append(trader.pendingOrders, order)
}
/*
func (trader *BackTestTrader) RunStrategy(ctx context.Context, strategy SingleExchangeStrategy) (chan struct{}, error) {
logrus.Infof("[regression] number of kline data: %d", len(trader.SourceKLines))
@ -148,3 +145,4 @@ func (trader *BackTestTrader) RunStrategy(ctx context.Context, strategy SingleEx
return done, nil
}
*/