feature/dynamic_exposure: move to risk package

This commit is contained in:
Andy Cheng 2022-12-15 17:04:43 +08:00
parent 8b1d19124f
commit 1002c13062
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/c9s/bbgo/pkg/dynamicmetric"
"github.com/c9s/bbgo/pkg/risk"
"sync"
"github.com/c9s/bbgo/pkg/indicator"
@ -110,7 +111,7 @@ type Strategy struct {
// DynamicExposure is used to define the exposure position range with the given percentage.
// When DynamicExposure is set, your MaxExposurePosition will be calculated dynamically
DynamicExposure dynamicmetric.DynamicExposure `json:"dynamicExposure"`
DynamicExposure risk.DynamicExposure `json:"dynamicExposure"`
bbgo.QuantityOrAmount