From b75da154a8b29253235579948c7445bd9d1b8916 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 22 Jun 2022 13:31:48 +0800 Subject: [PATCH] rsmaker: remove legacy state struct --- pkg/strategy/rsmaker/strategy.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/strategy/rsmaker/strategy.go b/pkg/strategy/rsmaker/strategy.go index b3db11c0b..3233fa3d5 100644 --- a/pkg/strategy/rsmaker/strategy.go +++ b/pkg/strategy/rsmaker/strategy.go @@ -36,11 +36,6 @@ func init() { bbgo.RegisterStrategy(ID, &Strategy{}) } -type State struct { - Position *types.Position `json:"position,omitempty"` - ProfitStats types.ProfitStats `json:"profitStats,omitempty"` -} - type BollingerSetting struct { types.IntervalWindow BandWidth float64 `json:"bandWidth"` @@ -149,8 +144,6 @@ type Strategy struct { orderExecutor *bbgo.GeneralOrderExecutor book *types.StreamOrderBook - state *State - groupID uint32 // defaultBoll is the BOLLINGER indicator we used for predicting the price.