app / de.uniks.codliners.stock_simulator.repository / AccountRepository / calculateSellCashflow

calculateSellCashflow

fun calculateSellCashflow(quote: Quote?, amount: Double?): Double

Calculates the cashflow of a sell transaction.

Parameters

quote - The Quote to sell.

amount - The sell amount of the Quote.

Return
The calculated cashflow.

Author
Lucas Held