Skip to content

Commit

Permalink
all: clean up bbgo.Notifiability
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jun 19, 2022
1 parent 88a63df commit 1562194
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 33 deletions.
2 changes: 0 additions & 2 deletions pkg/strategy/autoborrow/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ type MarginAsset struct {
}

type Strategy struct {
*bbgo.Notifiability

Interval types.Interval `json:"interval"`
MinMarginLevel fixedpoint.Value `json:"minMarginLevel"`
MaxMarginLevel fixedpoint.Value `json:"maxMarginLevel"`
Expand Down
4 changes: 0 additions & 4 deletions pkg/strategy/bollgrid/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ func init() {
}

type Strategy struct {
// The notification system will be injected into the strategy automatically.
// This field will be injected automatically since it's a single exchange strategy.
*bbgo.Notifiability

// OrderExecutor is an interface for submitting order.
// This field will be injected automatically since it's a single exchange strategy.
bbgo.OrderExecutor
Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/bollmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ type BollingerSetting struct {

type Strategy struct {
*bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence

Environment *bbgo.Environment
Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/dca/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func (b BudgetPeriod) Duration() time.Duration {
// Strategy is the Dollar-Cost-Average strategy
type Strategy struct {
*bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence

Environment *bbgo.Environment
Expand Down
4 changes: 0 additions & 4 deletions pkg/strategy/emastop/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ func init() {
type Strategy struct {
*bbgo.Graceful

// The notification system will be injected into the strategy automatically.
// This field will be injected automatically since it's a single exchange strategy.
*bbgo.Notifiability

SourceExchangeName string `json:"sourceExchange"`

TargetExchangeName string `json:"targetExchange"`
Expand Down
2 changes: 0 additions & 2 deletions pkg/strategy/etf/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ func init() {
type Strategy struct {
Market types.Market

Notifiability *bbgo.Notifiability

TotalAmount fixedpoint.Value `json:"totalAmount,omitempty"`

// Interval is the period that you want to submit order
Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/fmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type IntervalWindowSetting struct {

type Strategy struct {
*bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence

Environment *bbgo.Environment
Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/funding/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func init() {
}

type Strategy struct {
*bbgo.Notifiability
// These fields will be filled from the config file (it translates YAML to JSON)
Symbol string `json:"symbol"`
Market types.Market `json:"-"`
Expand Down
4 changes: 0 additions & 4 deletions pkg/strategy/grid/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ type State struct {
}

type Strategy struct {
// The notification system will be injected into the strategy automatically.
// This field will be injected automatically since it's a single exchange strategy.
*bbgo.Notifiability `json:"-" yaml:"-"`

*bbgo.Graceful `json:"-" yaml:"-"`

*bbgo.Persistence
Expand Down
2 changes: 0 additions & 2 deletions pkg/strategy/schedule/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ func init() {
type Strategy struct {
Market types.Market

Notifiability *bbgo.Notifiability

// StandardIndicatorSet contains the standard indicators of a market (symbol)
// This field will be injected automatically since we defined the Symbol field.
*bbgo.StandardIndicatorSet
Expand Down
4 changes: 0 additions & 4 deletions pkg/strategy/swing/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ func init() {
}

type Strategy struct {
// The notification system will be injected into the strategy automatically.
// This field will be injected automatically since it's a single exchange strategy.
*bbgo.Notifiability

// OrderExecutor is an interface for submitting order.
// This field will be injected automatically since it's a single exchange strategy.
bbgo.OrderExecutor
Expand Down
2 changes: 0 additions & 2 deletions pkg/strategy/techsignal/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ func init() {
}

type Strategy struct {
*bbgo.Notifiability

// These fields will be filled from the config file (it translates YAML to JSON)
Symbol string `json:"symbol"`
Market types.Market `json:"-"`
Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/wall/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func init() {

type Strategy struct {
*bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence

Environment *bbgo.Environment
Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/xbalance/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func (a *Address) UnmarshalJSON(body []byte) error {
}

type Strategy struct {
Notifiability *bbgo.Notifiability
*bbgo.Graceful
*bbgo.Persistence

Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/xgap/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func (s *State) Reset() {

type Strategy struct {
*bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence

Symbol string `json:"symbol"`
Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/xmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func init() {

type Strategy struct {
*bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence
Environment *bbgo.Environment

Expand Down
1 change: 0 additions & 1 deletion pkg/strategy/xnav/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func (s *State) Reset() {
}

type Strategy struct {
Notifiability *bbgo.Notifiability
*bbgo.Graceful
*bbgo.Persistence
*bbgo.Environment
Expand Down

0 comments on commit 1562194

Please sign in to comment.