Morning report
See original GitHub issueAfter your latest update kraken was fixed.Seems to work OK now.I will post if i ecnounter a problem,
Unfortunately poloniex private api now doesn’t work.
This is the error i get when i try to access private api.It worked in the last version of ccxt.
Traceback (most recent call last):
File "C:\oop\novi ws\Crypto\TransactionFees.py", line 8, in get_transaction_fee
response = self.request(command, type='private', method='POST')
File "C:\oop\novi ws\Crypto\ccxt.py", line 8600, in request
'Sign': self.hmac (self.encode (body), self.secret, hashlib.sha512),
File "C:\oop\novi ws\Crypto\ccxt.py", line 373, in hmac
h = hmac.new (secret, request, algorithm)
File "C:\Program Files (x86)\Python36-32\lib\hmac.py", line 144, in new
return HMAC(key, msg, digestmod)
File "C:\Program Files (x86)\Python36-32\lib\hmac.py", line 42, in __init__
raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).__name__)
TypeError: key: expected bytes or bytearray, but got 'str'
Furthermore when i try to access GDAX and its private api this is what I get:
Traceback (most recent call last):
File "C:\oop\novi ws\Crypto\TransactionFees.py", line 50, in get_transaction_fee
response = self.request(command, type='private', method='GET')
File "C:\oop\novi ws\Crypto\ccxt.py", line 6373, in request
'CB-ACCESS-PASSPHRASE': self.password,
AttributeError: 'gdax' object has no attribute 'password'
So the problem here seems to be in the request of gdax
else:
nonce = str (self.nonce ())
if query:
body = self.json (query)
what = nonce + method + request + (body or '')
secret = base64.b64decode (self.secret)
signature = self.hmac (self.encode (what), secret, hashlib.sha256, 'binary')
headers = {
'CB-ACCESS-KEY': self.apiKey,
'CB-ACCESS-SIGN': base64.b64encode (signature),
'CB-ACCESS-TIMESTAMP': nonce,
'CB-ACCESS-PASSPHRASE': self.password,
}
return self.fetch (url, method, headers, body)
there is no password.Tried changing it to secret but that’s not it.
And I tried a few other and the problem from poloniex is repeated.
I m sorry for bothering you too much I will be more than happy to do the test once you find the problem. Let me know if you need anything else.
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
Capitol Morning Report
Capitol Morning Report · phone: (916) 443-5883 · fax: (916) 443-5251 · A daily listing of upcoming events and other news for members...
Read more >Marketplace Morning Report - Daily News Podcast & Show
Kick off your day with Marketplace Morning Report, a daily business news podcast and show, hosted by David Brancaccio. Get up to speed...
Read more >Morning Report | The Hill | Page 1
The latest Morning Report news information brought to you by the team at The Hill:
Read more >Marketplace Morning Report - NPR
Marketplace Morning Report In less than 10 minutes, we'll get you up to speed on all the news you missed overnight. Throughout the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kroitor, It works! I thought the ‘password’ is my personal password, and it turned out to be the
Passphrase
at GDAX. I think the key name ‘password’ is a bit misleading. Thanks for the help 👍@Tsuihao have you tried recreating a new keyset (just to make sure you’re not using wrong credentials with it)?