grid2: add AutoRange parameter

This commit is contained in:
c9s 2022-12-24 20:39:11 +08:00
parent d27786d5ae
commit f60b4630c5
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -65,6 +65,8 @@ type Strategy struct {
// GridNum is the grid number, how many orders you want to post on the orderbook.
GridNum int64 `json:"gridNumber"`
AutoRange types.Duration `json:"autoRange"`
UpperPrice fixedpoint.Value `json:"upperPrice"`
LowerPrice fixedpoint.Value `json:"lowerPrice"`