package entity import "time" type OrderSide string type OrderType string type OrderStatus string const ( Buy OrderSide = "buy" Sell OrderSide = "sell" Limit OrderType = "limit" Market OrderType = "market" OrderPending OrderStatus = "pending" OrderPartial OrderStatus = "partial" OrderFilled OrderStatus = "filled" OrderCancelled OrderStatus = "cancelled" ) type Order struct { ID string `json:"id"` UserID string `json:"userId"` CouponID string `json:"couponId"` Side OrderSide `json:"side"` Type OrderType `json:"type"` Price float64 `json:"price"` Quantity int `json:"quantity"` FilledQty int `json:"filledQty"` RemainingQty int `json:"remainingQty"` Status OrderStatus `json:"status"` CreatedAt time.Time `json:"createdAt"` }