coinbase/coinbase-python

Get price and get exchange rates not working.

murchie85 opened this issue ยท 9 comments

Hi when writing a simple python script to test Coinbase Features as per documentation I am getting the following results:

rates = client.get_exchange_rates(currency='BTC') rates
Result:

<APIObject @ 0x115841468> {
"currency": "USD",
"rates": {
"AED": "3.67",
"AFN": "69.77",
"ALL": "109.45"...

I also get similar issues when I try getting the price
price = client.get_buy_price(currency_pair = 'LTC-USD') price
Output

<APIObject @ 0x115841fc0> {
"amount": "13830.94",
"base": "BTC",
"currency": "USD"

I am using API keys with all functionality allowed.

Same Here

I can confirm this. Very bad behavior considering just returning USD might cause the client to buy or sell on the assumption of a wrong price!

Where are the developers? This is a key feature in the API integration...

this is 2-year-old last update repository.

pinging @sds.

same here. sometimes it's ok, sometimes not.

see this one, it fix the issue :
#54

This should be fixed by #54, @sds can you release a new version to pypi?

sds commented

2.0.7 was released yesterday. Hope this helps!

Thanks!