Bitcoin Forum
May 27, 2024, 10:11:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CoinbasePro API issue with getting filled orders  (Read 131 times)
dimasinteger (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 1


View Profile
November 16, 2018, 01:18:41 PM
 #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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!