src/stock.py
def sell(self, date, ticker, amount, unit_price, fee, currency):
        """ Check if the quantity of the ticker in the portfolio is >= quantity.
        if so, then return the transaction in dictionary form.
        e.g. return {'ticker': 'MSFT', 'date': '2022-02-02', 'quantity': 6, 'price': 120, 'fee': 2, 'currency': 'USD'} """
        tr = self.handle_transaction(date, ticker, amount, unit_price, fee, currency, type="Sell")
        return tr
 Check if the quantity of the ticker in the portfolio is >= quantity.
        if so, then return the transaction in dictionary form.
        e.g. return {'ticker': 'MSFT', 'date': '2022-02-02', 'quantity': 6, 'price': 120, 'fee': 2, 'currency': 'USD'} 
Check if the quantity of the ticker in the portfolio is >= quantity.
if so, then return the transaction in dictionary form.
Check if the quantity of the ticker in the portfolio is > = quantity . if so then return the transaction in dictionary form .
def sell(self, date, ticker, amount, unit_price, fee, currency):
        tr = self.handle_transaction(date, ticker, amount, unit_price, fee, currency, type="Sell")
        return tr
def sell ( self , date , ticker , amount , unit_price , fee , currency ) : tr = self . handle_transaction ( date , ticker , amount , unit_price , fee , currency , type = "Sell" ) return tr
Check if the quantity of the ticker in the portfolio is >= quantity.
Check if the quantity of the ticker in the portfolio is > = quantity .
""" Check if the quantity of the ticker in the portfolio is >= quantity.
        if so, then return the transaction in dictionary form.
        e.g. return {'ticker': 'MSFT', 'date': '2022-02-02', 'quantity': 6, 'price': 120, 'fee': 2, 'currency': 'USD'} """
self
date
ticker
amount
unit_price
fee
currency