Proper REST signatures

How is what you said different from this?

{"message":"invalid signature"}
response code: 401
https://api.exchange.coinbase.com/fills?order_id=4a2fbcf8-9a64-4da1-9881-04797200cf89&profile_id=default&limit=100

or this:

{"message":"invalid signature"}
response code: 401
https://api.exchange.coinbase.com/fills?order_id=4a2fbcf8-9a64-4da1-9881-04797200cf89

edit: Are you assuming I’m leaving order_id=“xxx” and not replacing that with an actual order id? That was just for the forum post, I am using a correct order id in my code.

Hello @Mike! Apologies for the confusion.

What we are trying to say is that the path should be like this:
path = "/fills?order_id="+729f1e45-74c6-4dfa-a244-10cf21cbb27a

instead of this:
path = "/fills"

The path variable must also include the query or path parameter, not just the endpoint itself :smiley:

We hope this clarifies. Thank you!

2 Likes

It worked! Thank you Camille I appreciate your help.

3 Likes

Hello @Mike, we’re always happy to help! Please reach out in the future if you need anything else. Thanks!

1 Like