Closed hunsnowboarder closed 6 years ago
Does this work:
import ccxt
exchange = ccxt.bittrex({
'apiKey': 'YOUR_API_KEY',
'secret': 'YOUR_SECRET',
})
print(exchange.fetch_balance()['BTC']['total'])
?
Yes, it solved my problem!
Thank you very much for your help!
@hunsnowboarder would be cool if you could reply to #962 ;)
Yes, I will now. Thank you!
I dont understand. The code you just pasted here works with jupyter notebook, but it produces error with pycharm. They both use python2.7.
What could be the problem?
Thank you
@hunsnowboarder what's the version of ccxt in pycharm? ccxt.__version__
= ?
Sorry for my late reply. I had very strange issues and finally figured out what the problem was. I did not update ccxt for a while now only some of the exchanges.
So I did a thorough update of everything and now it works like a charm. Thank you again for your continuous support and help! Have a happy new year!
I had a code running without any problems. I updated the bittrex.py file and now I get an error:
Traceback (most recent call last): File "C:/Lori/Adam/bitcoin/cryptoarb/rsi_bot.py", line 50, in
balance_btc = xchange.fetch_balance()['BTC']['total']
File "C:\Python27\lib\site-packages\ccxt\bittrex.py", line 201, in fetch_balance
response = self.accountGetBalances()
File "C:\Python27\lib\site-packages\ccxt\bittrex.py", line 616, in request
response = self.fetch2(path, api, method, params, headers, body)
File "C:\Python27\lib\site-packages\ccxt\base\exchange.py", line 258, in fetch2
request = self.sign(path, api, method, params, headers, body)
File "C:\Python27\lib\site-packages\ccxt\bittrex.py", line 584, in sign
self.check_required_credentials()
AttributeError: 'bittrex' object has no attribute 'check_required_credentials'
This is my code... so far it worked allright, now it wont work because of the error message. What is wrong? Thank you in advance!