all: clean up bbgo.Notifiability

This commit is contained in:
c9s 2022-06-19 13:05:02 +08:00
parent 88a63df186
commit 156219456b
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
17 changed files with 0 additions and 33 deletions

View File

@ -50,8 +50,6 @@ type MarginAsset struct {
} }
type Strategy struct { type Strategy struct {
*bbgo.Notifiability
Interval types.Interval `json:"interval"` Interval types.Interval `json:"interval"`
MinMarginLevel fixedpoint.Value `json:"minMarginLevel"` MinMarginLevel fixedpoint.Value `json:"minMarginLevel"`
MaxMarginLevel fixedpoint.Value `json:"maxMarginLevel"` MaxMarginLevel fixedpoint.Value `json:"maxMarginLevel"`

View File

@ -25,10 +25,6 @@ func init() {
} }
type Strategy 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
// OrderExecutor is an interface for submitting order. // OrderExecutor is an interface for submitting order.
// This field will be injected automatically since it's a single exchange strategy. // This field will be injected automatically since it's a single exchange strategy.
bbgo.OrderExecutor bbgo.OrderExecutor

View File

@ -51,7 +51,6 @@ type BollingerSetting struct {
type Strategy struct { type Strategy struct {
*bbgo.Graceful *bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence *bbgo.Persistence
Environment *bbgo.Environment Environment *bbgo.Environment

View File

@ -48,7 +48,6 @@ func (b BudgetPeriod) Duration() time.Duration {
// Strategy is the Dollar-Cost-Average strategy // Strategy is the Dollar-Cost-Average strategy
type Strategy struct { type Strategy struct {
*bbgo.Graceful *bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence *bbgo.Persistence
Environment *bbgo.Environment Environment *bbgo.Environment

View File

@ -27,10 +27,6 @@ func init() {
type Strategy struct { type Strategy struct {
*bbgo.Graceful *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"` SourceExchangeName string `json:"sourceExchange"`
TargetExchangeName string `json:"targetExchange"` TargetExchangeName string `json:"targetExchange"`

View File

@ -22,8 +22,6 @@ func init() {
type Strategy struct { type Strategy struct {
Market types.Market Market types.Market
Notifiability *bbgo.Notifiability
TotalAmount fixedpoint.Value `json:"totalAmount,omitempty"` TotalAmount fixedpoint.Value `json:"totalAmount,omitempty"`
// Interval is the period that you want to submit order // Interval is the period that you want to submit order

View File

@ -32,7 +32,6 @@ type IntervalWindowSetting struct {
type Strategy struct { type Strategy struct {
*bbgo.Graceful *bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence *bbgo.Persistence
Environment *bbgo.Environment Environment *bbgo.Environment

View File

@ -27,7 +27,6 @@ func init() {
} }
type Strategy struct { type Strategy struct {
*bbgo.Notifiability
// These fields will be filled from the config file (it translates YAML to JSON) // These fields will be filled from the config file (it translates YAML to JSON)
Symbol string `json:"symbol"` Symbol string `json:"symbol"`
Market types.Market `json:"-"` Market types.Market `json:"-"`

View File

@ -45,10 +45,6 @@ type State struct {
} }
type Strategy 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.Graceful `json:"-" yaml:"-"`
*bbgo.Persistence *bbgo.Persistence

View File

@ -19,8 +19,6 @@ func init() {
type Strategy struct { type Strategy struct {
Market types.Market Market types.Market
Notifiability *bbgo.Notifiability
// StandardIndicatorSet contains the standard indicators of a market (symbol) // StandardIndicatorSet contains the standard indicators of a market (symbol)
// This field will be injected automatically since we defined the Symbol field. // This field will be injected automatically since we defined the Symbol field.
*bbgo.StandardIndicatorSet *bbgo.StandardIndicatorSet

View File

@ -26,10 +26,6 @@ func init() {
} }
type Strategy 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
// OrderExecutor is an interface for submitting order. // OrderExecutor is an interface for submitting order.
// This field will be injected automatically since it's a single exchange strategy. // This field will be injected automatically since it's a single exchange strategy.
bbgo.OrderExecutor bbgo.OrderExecutor

View File

@ -28,8 +28,6 @@ func init() {
} }
type Strategy struct { type Strategy struct {
*bbgo.Notifiability
// These fields will be filled from the config file (it translates YAML to JSON) // These fields will be filled from the config file (it translates YAML to JSON)
Symbol string `json:"symbol"` Symbol string `json:"symbol"`
Market types.Market `json:"-"` Market types.Market `json:"-"`

View File

@ -31,7 +31,6 @@ func init() {
type Strategy struct { type Strategy struct {
*bbgo.Graceful *bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence *bbgo.Persistence
Environment *bbgo.Environment Environment *bbgo.Environment

View File

@ -136,7 +136,6 @@ func (a *Address) UnmarshalJSON(body []byte) error {
} }
type Strategy struct { type Strategy struct {
Notifiability *bbgo.Notifiability
*bbgo.Graceful *bbgo.Graceful
*bbgo.Persistence *bbgo.Persistence

View File

@ -58,7 +58,6 @@ func (s *State) Reset() {
type Strategy struct { type Strategy struct {
*bbgo.Graceful *bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence *bbgo.Persistence
Symbol string `json:"symbol"` Symbol string `json:"symbol"`

View File

@ -34,7 +34,6 @@ func init() {
type Strategy struct { type Strategy struct {
*bbgo.Graceful *bbgo.Graceful
*bbgo.Notifiability
*bbgo.Persistence *bbgo.Persistence
Environment *bbgo.Environment Environment *bbgo.Environment

View File

@ -58,7 +58,6 @@ func (s *State) Reset() {
} }
type Strategy struct { type Strategy struct {
Notifiability *bbgo.Notifiability
*bbgo.Graceful *bbgo.Graceful
*bbgo.Persistence *bbgo.Persistence
*bbgo.Environment *bbgo.Environment