<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def marginSell(self, currencyPair, rate, amount, lendingRate=None):
 """Places a margin sell order in a given market. Parameters and output are the same as for the marginBuy method."""

        return self._private('marginSell', currencyPair=currencyPair, rate=rate,
                             amount=amount, lendingRate=lendingRate)