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

buy

suspend fun buy(quote: Quote, amount: Double): Unit

Buys an asset if possible and stores the related data in the StockAppDatabase.

Parameters

quote - Quote information of the asset.

amount - The amount to buy.