rename randomtrader to random

This commit is contained in:
narumi 2023-10-11 15:50:44 +08:00
parent 2f65793522
commit a8d678a544
3 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
--- ---
exchangeStrategies: exchangeStrategies:
- on: max - on: max
randomtrader: random:
symbol: USDCUSDT symbol: USDCUSDT
# https://pkg.go.dev/github.com/robfig/cron#hdr-Predefined_schedules # https://pkg.go.dev/github.com/robfig/cron#hdr-Predefined_schedules
cronExpression: "@every 1m" cronExpression: "@every 8h"
quantity: 8 quantity: 8
# adjust quantity by minimal notional and minimal quantity # adjust quantity by minimal notional and minimal quantity
adjustQuantity: true adjustQuantity: true

View File

@ -29,7 +29,7 @@ import (
_ "github.com/c9s/bbgo/pkg/strategy/pivotshort" _ "github.com/c9s/bbgo/pkg/strategy/pivotshort"
_ "github.com/c9s/bbgo/pkg/strategy/pricealert" _ "github.com/c9s/bbgo/pkg/strategy/pricealert"
_ "github.com/c9s/bbgo/pkg/strategy/pricedrop" _ "github.com/c9s/bbgo/pkg/strategy/pricedrop"
_ "github.com/c9s/bbgo/pkg/strategy/randomtrader" _ "github.com/c9s/bbgo/pkg/strategy/random"
_ "github.com/c9s/bbgo/pkg/strategy/rebalance" _ "github.com/c9s/bbgo/pkg/strategy/rebalance"
_ "github.com/c9s/bbgo/pkg/strategy/rsicross" _ "github.com/c9s/bbgo/pkg/strategy/rsicross"
_ "github.com/c9s/bbgo/pkg/strategy/rsmaker" _ "github.com/c9s/bbgo/pkg/strategy/rsmaker"

View File

@ -1,4 +1,4 @@
package randomtrader package random
import ( import (
"context" "context"
@ -15,7 +15,7 @@ import (
"github.com/c9s/bbgo/pkg/types" "github.com/c9s/bbgo/pkg/types"
) )
const ID = "randomtrader" const ID = "random"
var log = logrus.WithField("strategy", ID) var log = logrus.WithField("strategy", ID)