Install the BitMex package via pip.
Code: client.Position.Position_get(filter=json.dumps({'symbol': 'XBTUSD'})).result()