Documentation ¶
Index ¶
- func Buy(userID string, quantity int, symbol string, ag *accessors.AccessorGroup) string
- func Check(symbol string) string
- func Comma(number int) string
- func Health() string
- func MakeUser(userID string, username string, ag *accessors.AccessorGroup) string
- func MarketOpen() bool
- func Portfolio(userID string, ag *accessors.AccessorGroup) string
- func ReportLeaders(ag *accessors.AccessorGroup) string
- func Sell(userID string, quantity int, symbol string, ag *accessors.AccessorGroup) string
- func Webhook(message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeUser ¶
func MakeUser(userID string, username string, ag *accessors.AccessorGroup) string
MakeUser creates the given user and puts them into the database
func MarketOpen ¶
func MarketOpen() bool
func Portfolio ¶
func Portfolio(userID string, ag *accessors.AccessorGroup) string
Portfolio gets the given user's portfolio and returns it in string form
func ReportLeaders ¶
func ReportLeaders(ag *accessors.AccessorGroup) string
ReportLeaders returns a string of the leaderboard
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.