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

calculateBuyCashflow

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

Calculates the cashflow of a buy transaction.

Parameters

quote - The Quote to buy.

amount - The buy amount of the Quote.

Return
The calculated cashflow.

Author
Lucas Held