models

package
v0.0.0-...-cfc888a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Price

type Price struct {
	Open  string `bson:"open,omitempty"`
	High  string `bson:"high,omitempty"`
	Low   string `bson:"low,omitempty"`
	Close string `bson:"close,omitempty"`
}

Price is stock price

type STOCH

type STOCH struct {
	K string `bson:"k,omitempty"`
	D string `bson:"d,omitempty"`
}

STOCH is kd indicator

type StockInfo

type StockInfo struct {
	ID         string    `bson:"stock_id"`
	DailyKD    STOCH     `bson:"daily_kd,omitempty"`
	WeeklyKD   STOCH     `bson:"weekly_kd,omitempty"`
	MonthlyKD  STOCH     `bson:"monthly_kd,omitempty"`
	DailyPrice Price     `bson:"daily_price,omitempty"`
	LastUpdate time.Time `bson:"last_update,omitempty"`
}

StockInfo stored stock price

type User

type User struct {
	UserID      int       `bson:"user_id,omitempty"`
	BotPlatform int       `bson:"bot_platform,omitempty"`
	Stocks      []string  `bson:"stocks,omitempty"`
	LastUpdate  time.Time `bson:"last_update,omitempty"`
}

User is the db structure for telegram user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL