Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuySold ¶
func (BuySold) ToProtoModel ¶
type Sell ¶
type Sell struct { Transaction TaxMethod TaxMethod Profit float64 CGTProfit float64 BuysSold []BuySold }
func (Sell) ToProtoModel ¶
type StockPosition ¶
type StockPosition struct { Ticker string Quantity float64 NetSpend float64 SoldProfit float64 CGTProfit float64 Buys []Buy Sells []Sell }
func (StockPosition) ToProtoModel ¶
func (sp StockPosition) ToProtoModel() stockpb.StockPosition
type StockTax ¶
type StockTax struct { FinancialYear string NetProfitCGT float64 NetProfitCGTAUD float64 NetProfit float64 NetProfitAUD float64 GainsCGT float64 GainsCGTAUD float64 Gains float64 Losses float64 Events []TaxEvent }
func (StockTax) ToProtoModel ¶
type StockTransactions ¶
type StockTransactions struct { Ticker string Transactions []Transaction }
type TaxEvent ¶
type TaxEvent struct { Date time.Time Ticker string Profit float64 ProfitAUD float64 CGTProfit float64 CGTProfitAUD float64 }
func (TaxEvent) ToProtoModel ¶
type Transaction ¶
type Transaction struct { ID string Ticker string Currency string Date time.Time Type TransactionType Quantity float64 TradePrice float64 RealPrice float64 Proceeds float64 BrokerageFee float64 Basis float64 BrokerProfit float64 USDAUD float64 Splitfactor float64 }
func (Transaction) ToProtoModel ¶
func (t Transaction) ToProtoModel() stockpb.Transaction
type TransactionType ¶
type TransactionType string
var ( Buytype TransactionType = "BUY" Selltype TransactionType = "SELL" )
func (TransactionType) ToProtoModel ¶
func (tt TransactionType) ToProtoModel() stockpb.TransactionType
Click to show internal directories.
Click to hide internal directories.