feature/dynamic_spread: move to risk package

This commit is contained in:
Andy Cheng 2022-12-15 17:09:47 +08:00
parent 4c98bed76f
commit 5c7c125c99
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
package dynamicmetric
package risk
import (
"github.com/pkg/errors"

View File

@ -103,7 +103,7 @@ type Strategy struct {
// DynamicSpread enables the automatic adjustment to bid and ask spread.
// Overrides Spread, BidSpread, and AskSpread
DynamicSpread dynamicmetric.DynamicSpread `json:"dynamicSpread,omitempty"`
DynamicSpread risk.DynamicSpread `json:"dynamicSpread,omitempty"`
// MaxExposurePosition is the maximum position you can hold
// 10 means you can hold 10 ETH long/short position by maximum