fairdesk / fairdesk-api-docs

API docs for fairdesk exchange
5 stars 8 forks source link

please check the return code of the adjust-leverage #4

Closed brayden-jo closed 2 years ago

brayden-jo commented 2 years ago

https://github.com/fairdesk/fairdesk-api-docs#securitytype

I used http put requests as official document, I got the below errror

'data': None, 'error': 'unknown gateway error.', 'status': -10}
brayden-jo commented 2 years ago

there was two issues. 1) first one is that 1 minute plus for the expiry ( (Now() + 1 minute)) 2) second one is related to python requests module

        #resp = requests.put(url=url, headers=headers, data=json.dumps(body)) # fail
        resp = requests.put(url=url, headers=headers, json=body)  # succes