@authentication_required
def isolate_margin(self, symbol, leverage, rethrow_errors=False):
    'Set the leverage on an isolated margin position'
    path = 'position/leverage'
    postdict = {'symbol': symbol, 'leverage': leverage}
    return self._curl_bitmex(path=path, postdict=postdict, verb='POST', rethrow_errors=rethrow_errors)
Set the leverage on an isolated margin position
@authentication_required
def isolate_margin(self, symbol, leverage, rethrow_errors=False):
    
    path = 'position/leverage'
    postdict = {'symbol': symbol, 'leverage': leverage}
    return self._curl_bitmex(path=path, postdict=postdict, verb='POST', rethrow_errors=rethrow_errors)