401/Unauthorized while doing REST vs Coinbase Advanced Trade API/Javascript
I am querying coinbase advancedTrade using node/javascript, using their most recent v3 api. They recommend using axios, then implement an authentication scheme using jsonwebtoken. I have created an api token on coinbase, with appropriate trading permissions (a trading token), then I store it on a USB. This creates an appropriate Bearer token, as far as I can see. My definitions of secret and key names are ok, but I get a 401/Unauthorized. Here is my authentication routine and REST request, with an ensuing response. Code I am using, doing authentication before RESTful call. const axios = requir
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.