rsmaker: remove legacy state struct

This commit is contained in:
c9s 2022-06-22 13:31:48 +08:00
parent 16eeeb852c
commit b75da154a8
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -36,11 +36,6 @@ func init() {
bbgo.RegisterStrategy(ID, &Strategy{}) bbgo.RegisterStrategy(ID, &Strategy{})
} }
type State struct {
Position *types.Position `json:"position,omitempty"`
ProfitStats types.ProfitStats `json:"profitStats,omitempty"`
}
type BollingerSetting struct { type BollingerSetting struct {
types.IntervalWindow types.IntervalWindow
BandWidth float64 `json:"bandWidth"` BandWidth float64 `json:"bandWidth"`
@ -149,8 +144,6 @@ type Strategy struct {
orderExecutor *bbgo.GeneralOrderExecutor orderExecutor *bbgo.GeneralOrderExecutor
book *types.StreamOrderBook book *types.StreamOrderBook
state *State
groupID uint32 groupID uint32
// defaultBoll is the BOLLINGER indicator we used for predicting the price. // defaultBoll is the BOLLINGER indicator we used for predicting the price.