This commit is contained in:
2026-04-08 11:21:40 +08:00
parent f27bd75278
commit 4d3ac3836d
3 changed files with 15 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ type CollectorOrder struct {
Ymd int `json:"ymd" gorm:"not null;index;comment:采集日期年月日数字格式如20260407"`
Price float64 `json:"price" gorm:"type:decimal(10,4);not null;default:0;comment:委托价格"`
Volume int `json:"volume" gorm:"not null;default:0;comment:委托数量"`
OpenPrice float64 `json:"open_price" gorm:"type:decimal(10,4);not null;default:0;column:open_price;comment:开仓价格"`
TradedPrice float64 `json:"traded_price" gorm:"type:decimal(10,4);not null;default:0;column:traded_price;comment:成交均价"`
TradedVolume int `json:"traded_volume" gorm:"not null;default:0;column:traded_volume;comment:成交数量"`
OrderStatus int `json:"order_status" gorm:"not null;default:0;column:order_status;comment:订单状态"`