data class Transaction
The transaction database entity used to store purchases and sales of assets.
<init> |
The transaction database entity used to store purchases and sales of assets. Transaction(primaryKey: Long = 0, id: String, symbol: String, type: Type, amount: Double, price: Double, transactionCosts: Double, cashflow: Double, transactionType: TransactionType, date: Long, result: Double?) |
amount |
The amount of this purchase or sale. val amount: Double |
cashflow |
The total amount of money issued or received. val cashflow: Double |
date |
The date when this share had this price. val date: Long |
id |
The id of the asset. val id: String |
price |
The price at which the asset was bought or sold. val price: Double |
primaryKey |
An automatically generated primary key. val primaryKey: Long |
result |
The profit or loss on a sale. val result: Double? |
symbol |
The symbol of the asset. val symbol: String |
transactionCosts |
The possibly paid transaction costs for sales. val transactionCosts: Double |
transactionType |
The type of a transaction. val transactionType: TransactionType |
type |
The asset's type. val type: Type |