helpers

package
v0.0.0-...-42acf81 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buy

func Buy(userID string, quantity int, symbol string, ag *accessors.AccessorGroup) string

Buy buys a given number of stocks for the user

func Check

func Check(symbol string) string

Check checks the given symbol for current price

func Comma

func Comma(number int) string

func Health

func Health() string

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

func Sell

func Sell(userID string, quantity int, symbol string, ag *accessors.AccessorGroup) string

Sell sells a given number of the user's holdings in the symbol

func Webhook

func Webhook(message string)

Webhook calls out to the configured webhook and sends a message

Types

This section is empty.

Jump to

Keyboard shortcuts

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