From b9c32c7f7e81f02bce9efb8c9a35b7f631bb0871 Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 5 Jun 2022 12:37:35 +0800 Subject: [PATCH] pivotshort: numLayers should be int --- pkg/strategy/pivotshort/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/pivotshort/strategy.go b/pkg/strategy/pivotshort/strategy.go index b46fbd759..738597bd9 100644 --- a/pkg/strategy/pivotshort/strategy.go +++ b/pkg/strategy/pivotshort/strategy.go @@ -28,7 +28,7 @@ type Entry struct { Immediate bool `json:"immediate"` CatBounceRatio fixedpoint.Value `json:"catBounceRatio"` Quantity fixedpoint.Value `json:"quantity"` - NumLayers fixedpoint.Value `json:"numLayers"` + NumLayers int `json:"numLayers"` MarginSideEffect types.MarginOrderSideEffectType `json:"marginOrderSideEffect"` }