mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
add StopPrice field
This commit is contained in:
parent
b153f3dea2
commit
73d81a4e98
|
@ -15,7 +15,10 @@ type OrderUpdate struct {
|
|||
ID uint64 `json:"i"`
|
||||
Side string `json:"sd"`
|
||||
OrderType string `json:"ot"`
|
||||
|
||||
Price string `json:"p"`
|
||||
StopPrice string `json:"sp"`
|
||||
|
||||
Volume string `json:"v"`
|
||||
AveragePrice string `json:"ap"`
|
||||
State string `json:"S"`
|
||||
|
@ -46,6 +49,7 @@ func parserOrderUpdate(v *fastjson.Value) OrderUpdate {
|
|||
OrderType: string(v.GetStringBytes("ot")),
|
||||
State: string(v.GetStringBytes("S")),
|
||||
Price: string(v.GetStringBytes("p")),
|
||||
StopPrice: string(v.GetStringBytes("sp")),
|
||||
AveragePrice: string(v.GetStringBytes("ap")),
|
||||
Volume: string(v.GetStringBytes("v")),
|
||||
RemainingVolume: string(v.GetStringBytes("rv")),
|
||||
|
|
Loading…
Reference in New Issue
Block a user