0

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

Ehab Ibrahim
  • 515
  • 3
  • 10
Mohamed
  • 11
  • 2

1 Answers1

0

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.

FrankBr
  • 886
  • 2
  • 16
  • 37