VendorAssetTrader

Constructors

Link copied to clipboard
constructor(asset: PortfolioAsset)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun buy(currentPrice: Double)
Link copied to clipboard
open fun canTrade(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun sell(currentPrice: Double)
Link copied to clipboard
open fun setAsset(asset: PortfolioAsset)
Link copied to clipboard
open fun setMinProfitPercent(minProfitPercent: Double)
Link copied to clipboard
open fun trade(): Boolean
open fun trade(vendorPrice: Double): Boolean