Versions in this module Expand all Collapse all v1 v1.0.0 Dec 19, 2022 Changes in this version + func ConnectSQL(name, user, host, port, password string) + func Engine() *xorm.Engine + func StringToSymbol(s string) conset.SYMBOL + func SymbolToString(symbol conset.SYMBOL) string + type Account struct + CreatedAt time.Time + Id int64 + Name string + Plat string + Symbol string + Total float32 + UpdatedAt time.Time + Used float32 + func (self *Account) Account(pt conset.PLAT, symbol conset.SYMBOL) error + func (self *Account) Clear() error + func (self *Account) Inserts(pt conset.PLAT, symbol conset.SYMBOL) error + func (self *Account) Update() error + type AccountDay struct + CreateTime time.Time + CreatedAt time.Time + Id int64 + Name string + Plat string + Symbol string + Total float32 + UpdatedAt time.Time + Used float32 + func (self *AccountDay) Inserts(pt conset.PLAT, symbol conset.SYMBOL) error + type Coin struct + Close float32 + CreateTime time.Time + CreatedAt time.Time + High float32 + Id int64 + Low float32 + Open float32 + Plat string + Symbol string + Times string + Timestamp int64 + UpdatedAt time.Time + Volume float32 + func (self *Coin) ATR(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, limit int, ...) float32 + func (self *Coin) All(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, start time.Time) ([]*Coin, error) + func (self *Coin) Chanel(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, limit int, ...) (float32, float32) + func (self *Coin) Create(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, ...) error + func (self *Coin) EMA(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, limit int, ...) float32 + func (self *Coin) EMAStart(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, limit int, ...) float32 + func (self *Coin) LastTime(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES) (bool, time.Time) + func (self *Coin) Lasts(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, limit int, ...) ([]Coin, error) + func (self *Coin) MA(pt conset.PLAT, symbol conset.SYMBOL, times conset.TIMES, limit int, ...) float32 + type Indexs struct + CreatedAt time.Time + Date string + Id int64 + Name string + P1 float32 + P2 float32 + P3 float32 + P4 float32 + P5 float32 + Plat string + Symbol string + UpdatedAt time.Time + type Record struct + AvgPrice float32 + CreateTime time.Time + CreatedAt time.Time + Detail string + EstimatedLoss float32 + Id int64 + LossPrice float32 + Name string + Operation int32 + Period string + Plat string + Position int32 + Price float32 + Profit float32 + ProfitRate float32 + Size float32 + Status int32 + Symbol string + Total float32 + TotalRate float32 + UpdatedAt time.Time + Used float32 + func (self *Record) Clear() error + func (self *Record) Insert(pt conset.PLAT, symbol conset.SYMBOL) error + func (self *Record) Last(pt conset.PLAT, symbol conset.SYMBOL) error