mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
feature/dynamic_spread: move to risk package
This commit is contained in:
parent
4c98bed76f
commit
5c7c125c99
|
@ -1,4 +1,4 @@
|
||||||
package dynamicmetric
|
package risk
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
|
@ -103,7 +103,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 dynamicmetric.DynamicSpread `json:"dynamicSpread,omitempty"`
|
DynamicSpread risk.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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user