mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
feature/dynamic_exposure: undo move dynamic_exposure and dynamic_spread
This commit is contained in:
parent
754f8da5d4
commit
095eb9c134
|
@ -1,4 +1,4 @@
|
||||||
package risk
|
package dynamicmetric
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/c9s/bbgo/pkg/bbgo"
|
"github.com/c9s/bbgo/pkg/bbgo"
|
|
@ -1,4 +1,4 @@
|
||||||
package risk
|
package dynamicmetric
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/c9s/bbgo/pkg/dynamicmetric"
|
"github.com/c9s/bbgo/pkg/dynamicmetric"
|
||||||
"github.com/c9s/bbgo/pkg/risk"
|
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/c9s/bbgo/pkg/indicator"
|
"github.com/c9s/bbgo/pkg/indicator"
|
||||||
|
@ -98,7 +97,7 @@ type Strategy struct {
|
||||||
|
|
||||||
// DynamicSpread enables the automatic adjustment to bid and ask spread.
|
// DynamicSpread enables the automatic adjustment to bid and ask spread.
|
||||||
// Overrides Spread, BidSpread, and AskSpread
|
// Overrides Spread, BidSpread, and AskSpread
|
||||||
DynamicSpread risk.DynamicSpread `json:"dynamicSpread,omitempty"`
|
DynamicSpread dynamicmetric.DynamicSpread `json:"dynamicSpread,omitempty"`
|
||||||
|
|
||||||
// MaxExposurePosition is the maximum position you can hold
|
// MaxExposurePosition is the maximum position you can hold
|
||||||
// 10 means you can hold 10 ETH long/short position by maximum
|
// 10 means you can hold 10 ETH long/short position by maximum
|
||||||
|
@ -106,7 +105,7 @@ type Strategy struct {
|
||||||
|
|
||||||
// DynamicExposure is used to define the exposure position range with the given percentage.
|
// DynamicExposure is used to define the exposure position range with the given percentage.
|
||||||
// When DynamicExposure is set, your MaxExposurePosition will be calculated dynamically
|
// When DynamicExposure is set, your MaxExposurePosition will be calculated dynamically
|
||||||
DynamicExposure risk.DynamicExposure `json:"dynamicExposure"`
|
DynamicExposure dynamicmetric.DynamicExposure `json:"dynamicExposure"`
|
||||||
|
|
||||||
bbgo.QuantityOrAmount
|
bbgo.QuantityOrAmount
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user