mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bitget: define OrderStatus
This commit is contained in:
parent
90f704bab0
commit
ae1c1377ce
|
@ -19,7 +19,7 @@ type OrderDetail struct {
|
|||
Quantity fixedpoint.Value `json:"quantity"`
|
||||
OrderType OrderType `json:"orderType"`
|
||||
Side OrderSide `json:"side"`
|
||||
Status string `json:"status"`
|
||||
Status OrderStatus `json:"status"`
|
||||
FillPrice fixedpoint.Value `json:"fillPrice"`
|
||||
FillQuantity fixedpoint.Value `json:"fillQuantity"`
|
||||
FillTotalAmount fixedpoint.Value `json:"fillTotalAmount"`
|
||||
|
|
|
@ -29,3 +29,13 @@ const (
|
|||
OrderForceFOK OrderForce = "fok"
|
||||
OrderForceIOC OrderForce = "ioc"
|
||||
)
|
||||
|
||||
type OrderStatus string
|
||||
|
||||
const (
|
||||
OrderStatusInit OrderStatus = "init"
|
||||
OrderStatusNew OrderStatus = "new"
|
||||
OrderStatusPartialFill OrderStatus = "partial_fill"
|
||||
OrderStatusFullFill OrderStatus = "full_fill"
|
||||
OrderStatusCancelled OrderStatus = "cancelled"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user