Hi folks,
I made the following function in python to get filled orders from coinbasepro api but it has a problem...
My code :
def ListAllOrders():
order_url = api_base + '/fills'
order_data = {
'product_id': 'BTC-USD'
}
response = requests.get(order_url, data=json.dumps(order_data), auth=auth)
print(response.json())
The response I'm getting is :
{'message': 'query must contained either product_id or order_id'}
Any suggestions?
I tried 'all' instead of 'BTC-USD' , tried giving specific order_id , but I still got the same error response.
Thanks in advance