Merge pull request #1337 from c9s/narumi/rename-random

REFACTOR: rename randomtrader to random
This commit is contained in:
なるみ 2023-10-11 16:01:36 +08:00 committed by GitHub
commit 0a3baea316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -29,7 +29,7 @@ import (
_ "github.com/c9s/bbgo/pkg/strategy/pivotshort"
_ "github.com/c9s/bbgo/pkg/strategy/pricealert"
_ "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/rsicross"
_ "github.com/c9s/bbgo/pkg/strategy/rsmaker"

View File

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