rename gap to xgap

This commit is contained in:
c9s 2021-12-26 15:13:51 +08:00
parent 1c54e59d55
commit 30a7ca1ce1
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ sessions:
crossExchangeStrategies: crossExchangeStrategies:
- gap: - xgap:
symbol: "ETHUSDT" symbol: "ETHUSDT"
sourceExchange: binance sourceExchange: binance
tradingExchange: max tradingExchange: max

View File

@ -7,7 +7,7 @@ import (
_ "github.com/c9s/bbgo/pkg/strategy/emastop" _ "github.com/c9s/bbgo/pkg/strategy/emastop"
_ "github.com/c9s/bbgo/pkg/strategy/etf" _ "github.com/c9s/bbgo/pkg/strategy/etf"
_ "github.com/c9s/bbgo/pkg/strategy/flashcrash" _ "github.com/c9s/bbgo/pkg/strategy/flashcrash"
_ "github.com/c9s/bbgo/pkg/strategy/gap" _ "github.com/c9s/bbgo/pkg/strategy/xgap"
_ "github.com/c9s/bbgo/pkg/strategy/grid" _ "github.com/c9s/bbgo/pkg/strategy/grid"
_ "github.com/c9s/bbgo/pkg/strategy/kline" _ "github.com/c9s/bbgo/pkg/strategy/kline"
_ "github.com/c9s/bbgo/pkg/strategy/pricealert" _ "github.com/c9s/bbgo/pkg/strategy/pricealert"

View File

@ -1,4 +1,4 @@
package gap package xgap
import ( import (
"context" "context"
@ -16,7 +16,7 @@ import (
"github.com/c9s/bbgo/pkg/types" "github.com/c9s/bbgo/pkg/types"
) )
const ID = "gap" const ID = "xgap"
const stateKey = "state-v1" const stateKey = "state-v1"