This commit is contained in:
2026-04-09 14:25:18 +08:00
parent 4d3ac3836d
commit d02082a3b5
3 changed files with 7 additions and 0 deletions

View File

@@ -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,
}