I have the following curl code:
curl -X POST -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/account/transfer" \
-d "currency=eth&amount=0.01&type=bankToExchange"
how to apply the above code to Python?
Best to all
I have the following curl code:
curl -X POST -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/account/transfer" \
-d "currency=eth&amount=0.01&type=bankToExchange"
how to apply the above code to Python?
Best to all
Just use the requests module if you want to make the HTTP call via Python, or run that command using the subprocess module. In the latter case you could have issues when parsing the response in terms of headers/body/status code.