mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
Merge pull request #1337 from c9s/narumi/rename-random
REFACTOR: rename randomtrader to random
This commit is contained in:
commit
0a3baea316
|
@ -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
|
|
@ -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"
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user