fix bug
This commit is contained in:
@@ -139,6 +139,10 @@ func (s *Storage) SaveStatus(status *types.Status, dataHash string) error {
|
||||
if order.StockCode == "" {
|
||||
continue
|
||||
}
|
||||
// 只存储成交的订单
|
||||
if order.OrderStatus != 56 {
|
||||
continue
|
||||
}
|
||||
var open_price float64
|
||||
var info types.OrderInfo
|
||||
err = json.Unmarshal([]byte(order.OrderRemark), &info)
|
||||
@@ -165,6 +169,7 @@ func (s *Storage) SaveStatus(status *types.Status, dataHash string) error {
|
||||
OrderTime: order.OrderTime,
|
||||
OrderRemark: order.OrderRemark,
|
||||
DataHash: dataHash,
|
||||
OffsetFlag: order.OffsetFlag,
|
||||
CollectedAt: now,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user