From 26f97b43e8d68ae7800963616b48f9476e6a0eab Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 12 Oct 2020 22:51:13 +0800 Subject: [PATCH] drop legacy backtest trader --- pkg/bbgo/{kline_regression.go => backtest.go} | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename pkg/bbgo/{kline_regression.go => backtest.go} (98%) diff --git a/pkg/bbgo/kline_regression.go b/pkg/bbgo/backtest.go similarity index 98% rename from pkg/bbgo/kline_regression.go rename to pkg/bbgo/backtest.go index 9b5960885..40c0fcfc4 100644 --- a/pkg/bbgo/kline_regression.go +++ b/pkg/bbgo/backtest.go @@ -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 } +*/