You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
1.1 KiB
20 lines
1.1 KiB
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type BotStockList struct {
|
|
CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
|
|
DownLimit string `xorm:"not null default 0.00 comment('跌停限制 30 表示 30%') DECIMAL(10,2)"`
|
|
ForcedClosure string `xorm:"not null default 0.00 comment('强制平仓阈值 30 表示 30%') DECIMAL(10,2)"`
|
|
Id int `xorm:"not null pk autoincr INT"`
|
|
Info string `xorm:"comment('股票简介') TEXT"`
|
|
KeepDecimal int `xorm:"not null default 0 comment('保留小数位') INT"`
|
|
Status int `xorm:"not null default 0 comment('启用状态:0未启用,1已启用') index TINYINT(1)"`
|
|
StockCode string `xorm:"not null default '' comment('股票代码') unique VARCHAR(100)"`
|
|
StockName string `xorm:"not null default '' comment('股票名称') VARCHAR(500)"`
|
|
Tape int `xorm:"not null default 0 comment('交易所类型 0 未选择 详细见配置') index SMALLINT"`
|
|
UpLimit string `xorm:"not null default 0.00 comment('涨停限制 30 表示 30%') DECIMAL(10,2)"`
|
|
UpdateTime time.Time `xorm:"comment('更新时间') DATETIME"`
|
|
}
|
|
|