bingX-connector-python
bingX-connector-python copied to clipboard
Perpetual Trade V1's switch_margin_mode has a key error
File "/venv/lib/python3.9/site-packages/bingX/perpetual/v1/trade.py", line 180, in switch_margin_mode
return res['data']
KeyError: 'data'
I have not experience problems anywhere else.
{'code': 0, 'msg': '', 'ttl': 1} is the payload res resolves to after the call.