add lastUpdate to candle and max
This commit is contained in:
parent
06a3db9d19
commit
9e9ff51894
27
candle.go
27
candle.go
@ -19,19 +19,20 @@ import (
|
||||
)
|
||||
|
||||
type Candle struct {
|
||||
Id string `json:"_id"`
|
||||
core *Core
|
||||
InstID string
|
||||
Period string
|
||||
Data []interface{}
|
||||
From string
|
||||
Timestamp time.Time
|
||||
Open float64
|
||||
High float64
|
||||
Low float64
|
||||
Close float64
|
||||
VolCcy float64
|
||||
Confirm bool
|
||||
Id string `json:"_id"`
|
||||
core *Core
|
||||
InstID string
|
||||
Period string
|
||||
Data []interface{}
|
||||
From string
|
||||
Timestamp time.Time
|
||||
LastUpdate time.Time `json:"lastUpdate"`
|
||||
Open float64
|
||||
High float64
|
||||
Low float64
|
||||
Close float64
|
||||
VolCcy float64
|
||||
Confirm bool
|
||||
}
|
||||
type Sample interface {
|
||||
SetToKey(cr *Core) ([]interface{}, error)
|
||||
|
19
maX.go
19
maX.go
@ -18,15 +18,16 @@ type MaXList struct {
|
||||
}
|
||||
|
||||
type MaX struct {
|
||||
InstID string `json:"instID"`
|
||||
Period string `json:"period"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
KeyName string `json:"keyName"`
|
||||
Data []interface{} `json:"data"`
|
||||
Count int `json:"count,number"`
|
||||
Ts int64 `json:"ts,number"`
|
||||
AvgVal float64 `json:"avgVal,number"`
|
||||
From string `json:"from,string"`
|
||||
InstID string `json:"instID"`
|
||||
Period string `json:"period"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
LastUpdate time.Time `json:"lastUpdate"`
|
||||
KeyName string `json:"keyName"`
|
||||
Data []interface{} `json:"data"`
|
||||
Count int `json:"count,number"`
|
||||
Ts int64 `json:"ts,number"`
|
||||
AvgVal float64 `json:"avgVal,number"`
|
||||
From string `json:"from,string"`
|
||||
}
|
||||
|
||||
type WillMX struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user