coinbase / coinbase-python

DEPRECATED — Coinbase Python API
Apache License 2.0
524 stars 218 forks source link

Get price and get exchange rates not working. #65

Closed murchie85 closed 6 years ago

murchie85 commented 6 years ago

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.

wasdee commented 6 years ago

Same Here

NeoTheThird commented 6 years ago

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!

murchie85 commented 6 years ago

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

wasdee commented 6 years ago

this is 2-year-old last update repository.

NeoTheThird commented 6 years ago

pinging @sds.

belese commented 6 years ago

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

see this one, it fix the issue : https://github.com/coinbase/coinbase-python/pull/54

joshblum commented 6 years ago

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

sds commented 6 years ago

2.0.7 was released yesterday. Hope this helps!

joshblum commented 6 years ago

Thanks!