Author

Topic: CoinbasePro API issue with getting filled orders (Read 148 times)

newbie
Activity: 20
Merit: 1
November 16, 2018, 09:18:41 AM
#1
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
Jump to: