grid2: add profit stats since field

This commit is contained in:
c9s 2022-12-15 15:39:48 +08:00
parent a7c8da7e88
commit 19478b1fbc
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -3,6 +3,7 @@ package grid2
import ( import (
"fmt" "fmt"
"strconv" "strconv"
"time"
"github.com/slack-go/slack" "github.com/slack-go/slack"
@ -22,6 +23,7 @@ type GridProfitStats struct {
Volume fixedpoint.Value `json:"volume,omitempty"` Volume fixedpoint.Value `json:"volume,omitempty"`
Market types.Market `json:"market,omitempty"` Market types.Market `json:"market,omitempty"`
ProfitEntries []*GridProfit `json:"profitEntries,omitempty"` ProfitEntries []*GridProfit `json:"profitEntries,omitempty"`
Since *time.Time `json:"since,omitempty"`
} }
func newGridProfitStats(market types.Market) *GridProfitStats { func newGridProfitStats(market types.Market) *GridProfitStats {