mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
feature/dynamic_exposure: move to risk package
This commit is contained in:
parent
8b1d19124f
commit
1002c13062
|
@ -1,4 +1,4 @@
|
|||
package dynamicmetric
|
||||
package risk
|
||||
|
||||
import (
|
||||
"github.com/c9s/bbgo/pkg/bbgo"
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user