app / de.uniks.codliners.stock_simulator.database / AccountDao / getDepotQuoteWithId

getDepotQuoteWithId

abstract fun getDepotQuoteWithId(id: String): LiveData<DepotQuote>

Returns the DepotQuote with the matching id, wrapped in LiveData. Conflates all DepotQuotePurchases with the matching id and returns them as one DepotQuote, whereby the amount Double is added up and the mean buyingPrice Double is bid from the buyingPrices Double.

Parameters

id - The DepotQuotePurchase id used in this query.

Return
LiveData containing the DepotQuote.