mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
types: add order.originalStatus
This commit is contained in:
parent
fe9dc9a79d
commit
b307275e60
|
@ -258,11 +258,22 @@ type Order struct {
|
|||
OrderID uint64 `json:"orderID" db:"order_id"` // order id
|
||||
UUID string `json:"uuid,omitempty"`
|
||||
|
||||
Status OrderStatus `json:"status" db:"status"`
|
||||
Status OrderStatus `json:"status" db:"status"`
|
||||
|
||||
// OriginalStatus stores the original order status from the specific exchange
|
||||
OriginalStatus string `json:"originalStatus,omitempty" db:"-"`
|
||||
|
||||
// ExecutedQuantity is how much quantity has been executed
|
||||
ExecutedQuantity fixedpoint.Value `json:"executedQuantity" db:"executed_quantity"`
|
||||
IsWorking bool `json:"isWorking" db:"is_working"`
|
||||
CreationTime Time `json:"creationTime" db:"created_at"`
|
||||
UpdateTime Time `json:"updateTime" db:"updated_at"`
|
||||
|
||||
// IsWorking means if the order is still on the order book (active order)
|
||||
IsWorking bool `json:"isWorking" db:"is_working"`
|
||||
|
||||
// CreationTime is the time when this order is created
|
||||
CreationTime Time `json:"creationTime" db:"created_at"`
|
||||
|
||||
// UpdateTime is the latest time when this order gets updated
|
||||
UpdateTime Time `json:"updateTime" db:"updated_at"`
|
||||
|
||||
IsFutures bool `json:"isFutures,omitempty" db:"is_futures"`
|
||||
IsMargin bool `json:"isMargin,omitempty" db:"is_margin"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user