mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
fix: move sourceselector to bbgo folder
This commit is contained in:
parent
b35bce1afd
commit
67e57b49eb
|
@ -1,4 +1,4 @@
|
||||||
package strategy
|
package bbgo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -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"`
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user