Closed Kieranator closed 6 years ago
Seems to be related to this:
https://docs.pro.coinbase.com/#introduction
"8/23/18 - Query parameters on /fills will now be required. more info"
https://docs.pro.coinbase.com/#fills
"DEPRECATION NOTICE - Requests without either order_id or product_id will be rejected after 8/23/18."
So yeah this isn't really a bug, just a limitation imposed by coinbase. You can't query for fills without either an order_id or product_id. Explicitly specifying one fixes the issue:
fills_gen = auth_client.get_fills(product_id= 'BTC-USD')
Good catch. I added a note in the comments, but was unsure to raise any exceptions. If a related issues comes up again, we may want to raise an error to enable a better developer experience.
I think raising some kind of error would be prudent because as it is the generator just mangles the error response from coinbase. It took some time for me to figure out what was going on.
the generator returned by get_fills doesn't iterate correctly. using
prints out a single item in the list thats just a string that says "message"
from what I can see, all other functions related to auth_client are working correctly, such as balances.