Install the BitMex package via pip.
Code: client.Position.Position_updateLeverage (symbol = symbol, leverage = Leverage)