Bitcoin Forum

Economy => Service Discussion => Topic started by: dimasinteger on November 16, 2018, 01:18:41 PM



Title: CoinbasePro API issue with getting filled orders
Post by: dimasinteger on November 16, 2018, 01:18:41 PM
Hi folks,

I made the following function in python to get filled orders from coinbasepro api but it has a problem...

My code :

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