Hi @daghz! Welcome to the Coinbase Cloud Developer’s Forum!
We understand that you are having trouble with regards to authorization. Based on the code snippet you have provided, we noticed that you are actually using SECRET_KEY instead of ACCESS_KEY for generating the signature. You may find relevant information in our documentation about Authenticating Messages, such as sample Signature Generation codes which you may refer to and check if the proper syntax was followed. In addition, please note that we also found a similar forum post with your case scenario and we suggest that you also try looking into it for reference.
We hope this helps. Thank you and have a great day!
I would probably not recommend using ChatGPT to generate code for the Advanced Trade API. Not that it won’t work or I hate it or anything, it’s just that ChatGPT was trained on data that was available before Advanced Trade was release to the public in beta, so from my experience at least, it will give you a lot of code snippets that work on the Pro/Exchange API which don’t work the same way with Advanced Trade. It’s a good way to get confused, at least until they update the language model.