mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
move InventorySkew to strategy.common
This commit is contained in:
parent
970c1bb8c7
commit
5f096bbe0d
|
@ -1,4 +1,4 @@
|
|||
package fixedmaker
|
||||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -1,4 +1,4 @@
|
|||
package fixedmaker
|
||||
package common
|
||||
|
||||
import (
|
||||
"testing"
|
|
@ -35,7 +35,7 @@ type Strategy struct {
|
|||
OrderType types.OrderType `json:"orderType"`
|
||||
DryRun bool `json:"dryRun"`
|
||||
|
||||
InventorySkew InventorySkew `json:"inventorySkew"`
|
||||
InventorySkew common.InventorySkew `json:"inventorySkew"`
|
||||
|
||||
activeOrderBook *bbgo.ActiveOrderBook
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
"github.com/c9s/bbgo/pkg/bbgo"
|
||||
"github.com/c9s/bbgo/pkg/fixedpoint"
|
||||
"github.com/c9s/bbgo/pkg/strategy/common"
|
||||
"github.com/c9s/bbgo/pkg/strategy/fixedmaker"
|
||||
"github.com/c9s/bbgo/pkg/types"
|
||||
)
|
||||
|
||||
|
@ -39,7 +38,7 @@ type Strategy struct {
|
|||
ReferenceExchange string `json:"referenceExchange"`
|
||||
ReferencePriceEMA types.IntervalWindow `json:"referencePriceEMA"`
|
||||
OrderPriceLossThreshold fixedpoint.Value `json:"orderPriceLossThreshold"`
|
||||
InventorySkew fixedmaker.InventorySkew `json:"inventorySkew"`
|
||||
InventorySkew common.InventorySkew `json:"inventorySkew"`
|
||||
|
||||
market types.Market
|
||||
activeOrderBook *bbgo.ActiveOrderBook
|
||||
|
|
Loading…
Reference in New Issue
Block a user