clean up trader fields

This commit is contained in:
c9s 2020-07-13 12:36:04 +08:00
parent 40c9ea1596
commit d3df1c5082

View File

@ -2,27 +2,19 @@ package bbgo
import (
"context"
slack2 "github.com/c9s/bbgo/pkg/slack"
log "github.com/sirupsen/logrus"
"github.com/slack-go/slack"
"github.com/c9s/bbgo/pkg/bbgo/exchange/binance"
"github.com/c9s/bbgo/pkg/bbgo/types"
"github.com/c9s/bbgo/pkg/slack"
log "github.com/sirupsen/logrus"
)
type Trader struct {
Notifier *slack2.SlackNotifier
Notifier *slack.SlackNotifier
// Context is trading Context
Context *TradingContext
Exchange *binance.Exchange
Slack *slack.Client
TradingChannel string
ErrorChannel string
InfoChannel string
}
func (t *Trader) Infof(format string, args ...interface{}) {