New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coinbase Advanced Trader 401 Unauthorized Issue #22182
Comments
Hello @tazengineering, cloud keys support was introduced recently, so you need to update your ccxt version to get it |
Hi @carlosmiei I have updated to ccxt-4.2.100 and the issue persists. |
@tazengineering Can you please double-check your api keys/permissions/ip restrictions/etc? |
Thank you for taking the time to support me. Are you using the same format for API key and secret I shared? I removed completely any IP restrictions. Where do you setup permissions from? Regards |
@tazengineering I'm using the keys from the file coinbase provides upon creating the keys And I'm creating them here: https://portal.cloud.coinbase.com/access/api?keyType=trade&referrer=advanced_trade |
Guys, sorry, must the secret key set as parameter "as is"? |
@KRV1 Are you reading the keys from a file? Can you check if the \n are properly escaped? |
@KRV1 Can you try to parse your secret doing this? $private_key = str_replace('\n', "\n", $private_key); |
@carlosmiei Thank you, yes problem was in the carriage return symbol |
Thank you @carlosmiei Unfortunately I could not manage to make it work in Python. I see you have yours using .json and split into multiple keys - where I only have 'apiKey' and 'secret' key.
|
issue is persisting for me |
I am having the same issue as well. There doesn't seem to be anything conclusive anywhere I've looked. This seems to be a CB issue because there are many questions about it |
I thought this was a CB issue as well so I decided to try using the CB advanced trade SDK. It works perfectly so I'm no longer using ccxt, hopefully this gets fixed. |
@reverendrenegade @bradym05 This is tricky because as I said locally things work as expected for us. What's your ccxt and python version? |
Thanks for the reply! ccxt Version: 4.3.18 After updating to the latest version of ccxt and Python this solved the issue. Thanks for everyone's time. |
@reverendrenegade Great, thanks for letting us know! |
Operating System
Windows
Programming Languages
Python
CCXT Version
4.2.64
Description
Issue when attempting to connect to Coinbase Advanced Trade.
Error: AuthenticationError: coinbase GET https://api.coinbase.com/api/v3/brokerage/products 401 Unauthorized Unauthorized
I have tried with both apiKey and Secret simplified or the full text shown when generating the API.
Code
The text was updated successfully, but these errors were encountered: