Documentation
¶
Index ¶
- type APISuccess
- type AccBal
- type Aggtrade
- type Ccy
- type City
- type ClnInstruHold
- type ClnSrvSubAC
- type Country
- type Customer
- type Ema
- type Hobby
- type Holding
- type InstruDepXsact
- type Kline
- type Post
- type Product
- type QuoteContent
- type QuoteData
- type QuoteResponse
- type Sma
- type Symbol
- type Ta
- type Todo
- type TopCoin
- type User
- type UserHobby
- type Wma
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APISuccess ¶
type APISuccess struct {
Total string `json:"total"`
}
type Aggtrade ¶
type Aggtrade struct { Id uint64 `gorm:"primaryKey"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` CreatedBy string `gorm:"not null;type:varchar(20)"` UpdatedBy string `gorm:"not null;type:varchar(20)"` DeletedBy string `gorm:"null;type:varchar(20)" json:"DeletedBy,omitempty"` Time int64 Symbol string `gorm:"index"` AggTradeID int64 Price string Quantity string FirstBreakdownTradeID int64 LastBreakdownTradeID int64 TradeTime int64 IsBuyerMaker bool Placeholder bool }
WsAggTradeEvent define websocket aggregate trade event
type Ccy ¶
type Ccy struct { Id uint64 `gorm:"primaryKey"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` CreatedBy string `gorm:"not null;type:varchar(20)"` UpdatedBy string `gorm:"not null;type:varchar(20)"` DeletedBy string `gorm:"null;type:varchar(20)" json:"DeletedBy,omitempty"` CcyCode string `gorm:"unique;not null;type:varchar(3)"` CcyName string `gorm:"not null;type:varchar(40)"` DecPlc int8 `gorm:"not null"` }
Ccy model - `Ccy` table
type City ¶
type City struct { Id uint64 `gorm:"primaryKey"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` CreatedBy string `gorm:"not null;type:varchar(20)"` UpdatedBy string `gorm:"not null;type:varchar(20)"` DeletedBy string `gorm:"null;type:varchar(20)" json:"DeletedBy,omitempty"` CityCode string `gorm:"unique;not null;type:varchar(2)"` CityName string `gorm:"not null;type:varchar(40)"` IdCountry uint64 `gorm:"not null"` }
City model - `City` table
type ClnInstruHold ¶
type ClnInstruHold struct { CreatedTimestamp time.Time `` /* 138-byte string literal not displayed */ UpdatedTimestamp time.Time `` /* 175-byte string literal not displayed */ DeletedTimestamp gorm.DeletedAt `gorm:"null;index;column:deletedtimestamp;type:timestamp null" bson:"deletedtimestamp" json:"-"` CreatedBy string `gorm:"column:createdby;type:varchar(20) not null" bson:"createdby" json:"createdby,omitempty"` UpdatedBy string `gorm:"column:updatedby;type:varchar(20) not null" bson:"updatedby" json:"updatedby,omitempty"` DeletedBy string `gorm:"column:deletedby;type:varchar(20) null" bson:"deletedby" json:"deletedby,omitempty"` ClnID string `gorm:"primaryKey;column:clnid;type:varchar(7) not null" bson:"clnid" json:"clnid,omitempty"` SubACID string `gorm:"primaryKey;column:subacid;type:varchar(4) not null" bson:"subacid" json:"subacid,omitempty"` InstruID string `gorm:"primaryKey;column:instruID;type:varchar(7) not null" bson:"instruid" json:"instruid,omitempty"` TotalQty float64 `gorm:"not null;column:totalqty" bson:"totalqty" json:"totalqty,omitempty"` Product Product `gorm:"foreignKey:InstruID;references:InstruID" bson:"product" json:"product,omitempty"` }
func (ClnInstruHold) TableName ¶
func (ClnInstruHold) TableName() string
type ClnSrvSubAC ¶
type ClnSrvSubAC struct { CreatedTimestamp time.Time `` /* 138-byte string literal not displayed */ UpdatedTimestamp time.Time `` /* 175-byte string literal not displayed */ DeletedTimestamp gorm.DeletedAt `gorm:"null;index;column:deletedtimestamp;type:timestamp null" bson:"deletedtimestamp" json:"-"` CreatedBy string `gorm:"column:createdby;type:varchar(20) not null" bson:"createdby" json:"createdby,omitempty"` UpdatedBy string `gorm:"column:updatedby;type:varchar(20) not null" bson:"updatedby" json:"updatedby,omitempty"` DeletedBy string `gorm:"column:deletedby;type:varchar(20) null" bson:"deletedby" json:"deletedby,omitempty"` ClnID string `gorm:"primaryKey;column:clnid;type:varchar(7) not null" bson:"clnid" json:"clnid,omitempty"` SubACID string `gorm:"primaryKey;column:subacid;type:varchar(4) not null" bson:"subacid" json:"subacid,omitempty"` SrvSubACShortName string `gorm:"column:srvsubacshortname;type:varchar(40) not null" bson:"srvsubacshortname" json:"srvsubacshortname,omitempty"` ClnInstruHolds []ClnInstruHold `gorm:"foreignKey:ClnID,SubACID;References:ClnID,SubACID" bson:"holdings" json:"holdings,omitempty"` InstruDepXsacts []InstruDepXsact `gorm:"foreignKey:ClnID,SubACID;References:ClnID,SubACID" bson:"instrudeposit" json:"instrudeposit,omitempty"` }
func (ClnSrvSubAC) TableName ¶
func (ClnSrvSubAC) TableName() string
type Country ¶
type Country struct { Id uint64 `gorm:"primaryKey"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` CreatedBy string `gorm:"not null;type:varchar(20)"` UpdatedBy string `gorm:"not null;type:varchar(20)"` DeletedBy string `gorm:"null;type:varchar(20)" json:"DeletedBy,omitempty"` CountryCode string `gorm:"unique;not null;type:varchar(2)"` CountryName string `gorm:"not null;type:varchar(40)"` Cities []City `gorm:"foreignkey:IdCountry;references:Id;constraint:OnUpdate:CASCADE,OnDelete:CASCADE" json:",omitempty"` }
Country model - `Country` table
type Customer ¶
type Customer struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` CustID string `gorm:"column:CustID" bson:"custid" json:"custid,omitempty"` ClnID string `gorm:"column:ClnID" bson:"clnid" json:"clnid,omitempty"` SubACID string `gorm:"column:SubACID" bson:"subacid" json:"subacid,omitempty"` SrvSubACShortName string `gorm:"column:SrvSubACShortName" bson:"srvsubacshortname" json:"srvsubacshortname,omitempty"` Holdings []Holding `gorm:"column:Holdings" bson:"holdings" json:"holdings"` CreatedAt time.Time `gorm:"column:CreatedAt" bson:"createdat" json:"createdat"` UpdatedAt time.Time `gorm:"column:UpdatedAt" bson:"updatedat" json:"updatedat"` }
type Hobby ¶
type Hobby struct { HobbyID uint64 `gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` Hobby string `json:"Hobby,omitempty"` Users []User `gorm:"many2many:user_hobbies" json:"-"` }
Hobby model - `hobbies` table
type Holding ¶
type Holding struct { InstruID string `bson:"instruid" json:"instruid,omitempty"` PLCode string `bson:"plcode" json:"plcode,omitempty"` StockCode string `bson:"stockcode" json:"stockcode,omitempty"` InstruShortName string `bson:"instrushortname" json:"instrushortname,omitempty"` TotalQty float64 `bson:"totalqty" json:"totalqty,omitempty"` }
type InstruDepXsact ¶
type InstruDepXsact struct { CreatedTimestamp time.Time `` /* 138-byte string literal not displayed */ UpdatedTimestamp time.Time `` /* 175-byte string literal not displayed */ DeletedTimestamp gorm.DeletedAt `gorm:"null;index;column:deletedtimestamp;type:timestamp null" bson:"deletedtimestamp" json:"-"` CreatedBy string `gorm:"column:createdby;type:varchar(20) not null" bson:"createdby" json:"createdby,omitempty"` UpdatedBy string `gorm:"column:updatedby;type:varchar(20) not null" bson:"updatedby" json:"updatedby,omitempty"` DeletedBy string `gorm:"column:deletedby;type:varchar(20) null" bson:"deletedby" json:"deletedby,omitempty"` ClnID string `gorm:"primaryKey;column:clnid;type:varchar(7) not null" bson:"clnid" json:"clnid,omitempty"` SubACID string `gorm:"primaryKey;column:subacid;type:varchar(4) not null" bson:"subacid" json:"subacid,omitempty"` InstruID string `gorm:"primaryKey;column:instruID;type:varchar(7) not null" bson:"instruid" json:"instruid,omitempty"` TotalQty float64 `gorm:"not null;column:totalqty" bson:"totalqty" json:"totalqty,omitempty"` Product Product `gorm:"foreignKey:InstruID;references:InstruID" bson:"product" json:"product,omitempty"` }
func (InstruDepXsact) TableName ¶
func (InstruDepXsact) TableName() string
type Kline ¶
type Kline struct { Id uint64 `gorm:"primaryKey"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` CreatedBy string `gorm:"not null;type:varchar(20)"` UpdatedBy string `gorm:"not null;type:varchar(20)"` DeletedBy string `gorm:"null;type:varchar(20)" json:"DeletedBy,omitempty"` Time int64 Symbol string `gorm:"index"` StartTime int64 `gorm:"index"` EndTime int64 Interval string `gorm:"index"` FirstTradeID int64 LastTradeID int64 Open string Close string High string Low string Volume string TradeNum int64 IsFinal bool `gorm:"index"` QuoteVolume string ActiveBuyVolume string ActiveBuyQuoteVolume string }
WsAggTradeEvent define websocket aggregate trade event
type Post ¶
type Post struct { PostID uint64 `gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` Title string `json:"Title,omitempty"` Body string `json:"Body,omitempty"` IDUser uint64 `json:"-"` }
Post model - `posts` table
type Product ¶
type Product struct { CreatedTimestamp time.Time `` /* 138-byte string literal not displayed */ UpdatedTimestamp time.Time `` /* 175-byte string literal not displayed */ DeletedTimestamp gorm.DeletedAt `gorm:"null;index;column:deletedtimestamp;type:timestamp null" bson:"deletedtimestamp" json:"-"` CreatedBy string `gorm:"column:createdby;type:varchar(20) not null" bson:"createdby" json:"createdby,omitempty"` UpdatedBy string `gorm:"column:updatedby;type:varchar(20) not null" bson:"updatedby" json:"updatedby,omitempty"` DeletedBy string `gorm:"column:deletedby;type:varchar(20) null" bson:"deletedby" json:"deletedby,omitempty"` InstruID string `gorm:"primaryKey;column:instruid;type:varchar(7) not null" bson:"instruid" json:"instruid,omitempty"` PLCode string `gorm:"column:plcode;type:varchar(3) not null" bson:"plcode" json:"plcode,omitempty"` StockCode string `gorm:"column:stockcode;type:varchar(10) not null" bson:"stockcode" json:"stockcode,omitempty"` InstruShortName string `gorm:"column:instrushortname;type:varchar(40) not null" bson:"instrushortname" json:"instrushortname,omitempty"` }
type QuoteContent ¶
type QuoteData ¶
type QuoteData struct { Id string `json:"id"` Quote string `json:"quote"` Length string `json:"length"` Author string `json:"author"` Tags []string `json:"tags"` Category string `json:"category"` Date string `json:"date"` Permalink string `json:"parmalink"` Title string `json:"title"` Background string `json:"Background"` }
type QuoteResponse ¶
type QuoteResponse struct { Success APISuccess `json:"success"` Contents QuoteContent `json:"contents"` }
type Symbol ¶ added in v0.1.11
type Symbol struct { Symbol string PctChange float64 Turnover float64 BuyRatio float64 Interval string StartTime string Open string High string Low string Close string Kline1m []Kline Kline3m []Kline Kline5m []Kline Kline15m []Kline Kline30m []Kline Kline1h []Kline Kline2h []Kline Kline4h []Kline Kline6h []Kline Kline8h []Kline Kline12h []Kline Kline1d []Kline Kline3d []Kline Kline1w []Kline Kline1M []Kline Ta1m Ta Ta3m Ta Ta5m Ta Ta15m Ta Ta30m Ta Ta1h Ta Ta2h Ta Ta4h Ta Ta6h Ta Ta8h Ta Ta12h Ta Ta1d Ta Ta3d Ta Ta1w Ta Ta1M Ta }
type Ta ¶ added in v0.1.11
type Ta struct { Sma10 []float64 Sma20 []float64 Sma50 []float64 Sma100 []float64 Sma150 []float64 Sma200 []float64 Sma250 []float64 Wma10 []float64 Wma20 []float64 Wma50 []float64 Wma100 []float64 Wma150 []float64 Wma200 []float64 Wma250 []float64 Ema10 []float64 Ema20 []float64 Ema50 []float64 Ema100 []float64 Ema150 []float64 Ema200 []float64 Ema250 []float64 }
type User ¶
type User struct { UserID uint64 `gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` FirstName string `json:"FirstName,omitempty"` LastName string `json:"LastName,omitempty"` IDAuth uint64 `json:"-"` Posts []Post `gorm:"foreignkey:IDUser;references:UserID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE" json:",omitempty"` Hobbies []Hobby `gorm:"many2many:user_hobbies" json:",omitempty"` }
User model - `users` table
Click to show internal directories.
Click to hide internal directories.