Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrettyString ¶ added in v1.2.0
func GetPrettyString(v interface{}) string
Types ¶
type Asset ¶
type Asset struct { Alloc string `json:"allocation"` Currency string `json:"currency"` Fxr string `json:"exchangeRate"` MarketValue string `json:"marketValue"` Name string `json:"name"` Order *order `json:"order,omitempty"` Price string `json:"price"` Qty string `json:"quantity"` Type string `json:"type"` // contains filtered or unexported fields }
type AssetGroup ¶
TODO: Convert to struct and include total market value field
type AssetRebalance ¶
type AssetRebalance struct { Source AssetGroup `json:"source"` Target AssetGroup `json:"target"` }
type Portfolio ¶
type Portfolio struct { Api api.StockApi Assets AssetRebalance `json:"assets"` // contains filtered or unexported fields }
func NewPortfolio ¶
Click to show internal directories.
Click to hide internal directories.