pkg: rename base -> common

This commit is contained in:
c9s 2023-07-09 19:55:36 +08:00
parent c9c058e717
commit 7c2de46273
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
package base
package common
import (
"context"

View File

@ -12,7 +12,7 @@ import (
"github.com/c9s/bbgo/pkg/fixedpoint"
"github.com/c9s/bbgo/pkg/indicator"
"github.com/c9s/bbgo/pkg/risk/riskcontrol"
"github.com/c9s/bbgo/pkg/strategy/base"
"github.com/c9s/bbgo/pkg/strategy/common"
"github.com/c9s/bbgo/pkg/types"
)
@ -37,7 +37,7 @@ func init() {
// Strategy scmaker is a stable coin market maker
type Strategy struct {
*base.Strategy
*common.Strategy
Environment *bbgo.Environment
Market types.Market
@ -100,7 +100,7 @@ func (s *Strategy) Subscribe(session *bbgo.ExchangeSession) {
}
func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, session *bbgo.ExchangeSession) error {
s.Strategy = &base.Strategy{}
s.Strategy = &common.Strategy{}
s.Strategy.Setup(ctx, s.Environment, session, s.Market, ID, s.InstanceID())
s.book = types.NewStreamBook(s.Symbol)