def sellSomeShares(tick, shares, data): sellingPrice = helperMethods.getPriceOfStock(tick) makeDeMoney = (sellingPrice * float(shares)) - 30 juser.updateCashSell(makeDeMoney) jhelp.removePartsOfObjectFromData(tick, shares, data)
def sellSomeShares(tick,shares,data): sellingPrice = helperMethods.getPriceOfStock(tick) makeDeMoney = (sellingPrice * float(shares)) - 30 juser.updateCashSell(makeDeMoney) jhelp.removePartsOfObjectFromData(tick,shares,data)
def sellAllTheShares(tick, shares, data): sellingPrice = helperMethods.getPriceOfStock(tick) moneyMade = (sellingPrice * float(shares)) - 30 juser.updateCashSell(moneyMade) jhelp.removeObjectFromData(tick, data)
def sellAllTheShares(tick,shares,data): sellingPrice = helperMethods.getPriceOfStock(tick) moneyMade = (sellingPrice * float(shares)) - 30 juser.updateCashSell(moneyMade) jhelp.removeObjectFromData(tick,data)