fix: move sourceselector to bbgo folder

This commit is contained in:
zenix 2022-09-06 14:43:05 +09:00
parent b35bce1afd
commit 67e57b49eb
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
package strategy package bbgo
import ( import (
"strings" "strings"

View File

@ -19,7 +19,6 @@ import (
"github.com/c9s/bbgo/pkg/fixedpoint" "github.com/c9s/bbgo/pkg/fixedpoint"
"github.com/c9s/bbgo/pkg/indicator" "github.com/c9s/bbgo/pkg/indicator"
"github.com/c9s/bbgo/pkg/interact" "github.com/c9s/bbgo/pkg/interact"
"github.com/c9s/bbgo/pkg/strategy"
"github.com/c9s/bbgo/pkg/types" "github.com/c9s/bbgo/pkg/types"
"github.com/c9s/bbgo/pkg/util" "github.com/c9s/bbgo/pkg/util"
) )
@ -43,7 +42,7 @@ type Strategy struct {
bbgo.StrategyController bbgo.StrategyController
types.Market types.Market
types.IntervalWindow types.IntervalWindow
strategy.SourceSelector bbgo.SourceSelector
*bbgo.Environment *bbgo.Environment
*types.Position `persistence:"position"` *types.Position `persistence:"position"`

View File

@ -14,7 +14,6 @@ import (
"github.com/c9s/bbgo/pkg/datatype/floats" "github.com/c9s/bbgo/pkg/datatype/floats"
"github.com/c9s/bbgo/pkg/fixedpoint" "github.com/c9s/bbgo/pkg/fixedpoint"
"github.com/c9s/bbgo/pkg/indicator" "github.com/c9s/bbgo/pkg/indicator"
"github.com/c9s/bbgo/pkg/strategy"
"github.com/c9s/bbgo/pkg/types" "github.com/c9s/bbgo/pkg/types"
"github.com/c9s/bbgo/pkg/util" "github.com/c9s/bbgo/pkg/util"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
@ -38,8 +37,8 @@ type Strategy struct {
Symbol string `json:"symbol"` Symbol string `json:"symbol"`
bbgo.StrategyController bbgo.StrategyController
bbgo.SourceSelector
types.Market types.Market
strategy.SourceSelector
Session *bbgo.ExchangeSession Session *bbgo.ExchangeSession
Interval types.Interval `json:"interval"` Interval types.Interval `json:"interval"`