cryptopia privatePostGetDepositAddress Python 2.7 ccxt 1.9.189
See original GitHub issueHey, Igor. I’m going to keep you busy today, okay? In all seriousness, I can’t thank you enough for your work. I’m not sure how to fix this one… I’ve been fiddling around with the exchanges.py to see if I can trace the issue, but I’m getting lost.
This is my code:
cryptopia = ccxt.cryptopia({[you know how it goes]})
address_pair = cryptopia.privatePostGetDepositAddress(params={'Currency' : 'XMR'}).get('Data')
print address_pair
try:
address_pair = (address_pair['BaseAddress'], address_pair['Address'])
except:
address_pair = (address_pair['Address'])
print address_pair
This is the result:
Traceback (most recent call last):
File "C:\Users\Kenneth\eclipse-workspace\Chank\CCXTtests.py", line 309, in <module>
address_pair = cryptopia.privatePostGetDepositAddress(params={'Currency' : 'XMR'}).get('Data')
File "C:\Python27\lib\site-packages\ccxt\exchanges.py", line 11070, in request
response = self.fetch2(path, api, method, params, headers, body)
File "C:\Python27\lib\site-packages\ccxt\exchange.py", line 238, in fetch2
return self.fetch(request['url'], request['method'], request['headers'], request['body'])
File "C:\Python27\lib\site-packages\ccxt\exchange.py", line 292, in fetch
return self.handle_rest_response(decoded_text, url, method, headers, body)
File "C:\Python27\lib\site-packages\ccxt\exchange.py", line 348, in handle_rest_response
raise ExchangeError(' '.join([self.id, method, url, response, str(e)]))
ccxt.errors.ExchangeError: <exception str() failed>
I’m at a loss as to the cause. Let me know if you need verbose output.
Thanks so much!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
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
Okay, I got it… the method did not like the way I was stacking the dictionary keys, I guess. Once I formatted it like this, all is well:
It facilitates both non-paymentid/memo addresses as well as those including the field.
Thanks for your quidance, again.
Nice! Cryptopia looks like an awesome exchange. I just discovered it yesterday.