bingX-connector-python icon indicating copy to clipboard operation
bingX-connector-python copied to clipboard

Perpetual Trade V1's switch_margin_mode has a key error

Open gemlabsdev opened this issue 2 years ago • 0 comments

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.

gemlabsdev avatar Jul 21 '23 09:07 gemlabsdev