Hey!
I’m trying to create an isolated margin order but keep getting an error code:
{‘code’: -1002, ‘msg’: ‘You are not authorized to execute this request.’}
Margin trading and Margin is enabled at API restrictions.
I found the issue.
In Python requests the request body needs to be sent as “params” not as “data”.
It works as “data” at spot trading but not at margin trading.