question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

southxchange & bleutrade fetch_balance error (ccxt v. 1.9.174, Python 2.7)

See original GitHub issue

The fetch_balance() function in southxchange and bleutrade seems to result in this error:

Traceback (most recent call last):
  File "C:\xampp\cgi-bin\TheChankReport.py", line 71, in <module>
    fetch_wallet()
  File "C:\xampp\cgi-bin\TheChankReport.py", line 22, in fetch_wallet
    balance = x.fetch_balance()
  File "C:\Python27\lib\site-packages\ccxt\exchanges.py", line 5482, in fetch_balance
    account['used'] = balance['Balance'] - balance['Available']
TypeError: unsupported operand type(s) for -: 'unicode' and 'unicode'

I have bittrex, anxpro and hitbtc working with the same code.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
PhinixPhirecommented, Oct 18, 2017

Working great! I appreciate the help, as always.

0reactions
kroitorcommented, Oct 18, 2017

It’s there, will stand by to hear from you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exchanges — ccxt 2.4.71 documentation
Python import ccxt exchange = ccxt.okcoinusd () # default id okcoin1 ... The ccxt library will append this version string to the API...
Read more >
python - fetch_balance method in ccxt won't return all assets
It seems like fetchBalance only returns one currency at a time. To get USDT as the asset to be returned, you must pass...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found