Documentation ¶
Index ¶
- Variables
- func HandleAsset(conn *database.Conn, writer http.ResponseWriter, request *http.Request)
- func HandleAssetBuy(conn *database.Conn, writer http.ResponseWriter, request *http.Request)
- func HandleAssetSell(conn *database.Conn, writer http.ResponseWriter, request *http.Request)
- func HandlePortfolio(conn *database.Conn, writer http.ResponseWriter, request *http.Request)
- func HandlePortfolioUpdate(conn *database.Conn, writer http.ResponseWriter, request *http.Request)
- type AssetAdjustData
- type AssetPageData
- type PortfolioListPageData
- type PortfolioPageData
- type TrackedAsset
Constants ¶
This section is empty.
Variables ¶
View Source
var Hundred decimal.Decimal = decimal.NewFromInt(100)
View Source
var One decimal.Decimal = decimal.NewFromInt(1)
Functions ¶
func HandleAsset ¶
HandleAsset displays the details for a single Cryptocurrency asset.
func HandleAssetBuy ¶
HandleAssetBuy swaps some cash for a cryptocurrency asset.
func HandleAssetSell ¶
HandleAssetSell swaps some cryptocurrency asset for cash.
func HandlePortfolio ¶
HandlePortfolio shows the assets and cash a user has.
func HandlePortfolioUpdate ¶
HandlePortfolioUpdate updates the user's currency and balance of that currency.
Types ¶
type AssetAdjustData ¶
type AssetAdjustData struct { PortfolioPageData // contains filtered or unexported fields }
type AssetPageData ¶
type AssetPageData struct { PortfolioPageData Asset TrackedAsset }
type PortfolioListPageData ¶
type PortfolioPageData ¶
Click to show internal directories.
Click to hide internal directories.