ccxt: Bithumb fetch_balance() Error(ver 1.9.153)

Code:

bithumb1 = ccxt.bithumb()
bithumb1.apiKey = "*********************"
bithumb1.secret = "**********************"
print(bithumb1.fetch_balance())

Result:

POST https://api.bithumb.com/info/balance 400 Bad Request  (possible reasons: invalid API keys, bad or old nonce, exchange is down or offline, on maintenance, DDoS protection, rate-limiting, {"status":"5100","message":"Bad Request.(Auth Data)"})

I have checked the doc , maybe the reason is that the function privatePostInfoBalance miss a params “currency”

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 28 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Alright! We made it! ) Your help was awesome! Thx for your ivolvement, it really means a lot to us and many other users. Let us know if you have any other difficulties with the library. Cheers!

Thank you for your hard working!! This project is amazing!

I succeed in getting account by bithumb‘s demo,its endPoint is

'endpoint=%2Finfo%2Fbalance&currency=ETH'

Result

https://api.bithumb.com/info/balance POST https://api.bithumb.com/info/balance 
Request: {'Api-Key': '×××××××××××××××××××××', 'Api-Sign': b'qCHx3Sa3yNhQa/KSgTwU1VxJ7dgx5nB8lOCg5WoNSerVZk91qkHrXl7igP/UUOpR05rfEOSUZQUB5+Kp/qIh7A==', 'Api-Nonce': '1508259633554', 'User-Agent': 'ccxt/1.9.153 (+https://github.com/ccxt-dev/ccxt) Python/3.6.1', 'Accept-Encoding': 'gzip, deflate'} endPoint=%2Finfo%2Fbalance

Thank you,Igor!

P.S. This is the first issue I opened in GitHub,I will pay attention to it later 😃