Tried the get order working, i can get fills, order buy and sells, see code below
request_method = "GET"
#print(order_id)
request_path = "/api/v3/brokerage/orders/historical/"
payload = ""
conn = http.client.HTTPSConnection("api.coinbase.com")
jwt_token = auth(request_method,request_path)
print(jwt_token)
headers = {
‘Content-Type’: ‘application/json’,
‘Authorization’: f’Bearer {jwt_token}’
}
request_path = request_path + order_id
print(request_path)
start_date = str(int(time.time()-(60**2)))
end_date = str(int(time.time()))
conn.request(request_method, request_path, payload, headers)
res = conn.getresponse()
data = res.read()
print(data)
data = json.loads(data)
return data
order_id not shown
Thanks in Advance
Andrew