Skip to content
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

Failed to get_recent_trades coinbase #2587

Open
Vegas10128 opened this issue Apr 8, 2024 · 5 comments
Open

Failed to get_recent_trades coinbase #2587

Vegas10128 opened this issue Apr 8, 2024 · 5 comments

Comments

@Vegas10128
Copy link

Describe your environment

Ubuntu 22.04 / Docker

Step 3: Describe the problem:

Describe the bug
OctoBot is not placing any trades, such as buying or selling with Coinbase.
Error code in logs show

##Failed to get_recent_trades coinbase GET https://api.coinbase.com/api/v3/brokerage/products/ADA-USDT/ticker?limit=20 401 Unauthorized Unauthorized##

##Failed to get_symbol_prices of ETH/USDT on 1m: AuthenticationError on coinbase GET https://api.coinbase.com/api/v3/brokerage/products/ETH-USDT/candles?granularity=ONE_MINUTE&start=1712579632&end=1712597632 401 Unauthorized Unauthorized##

##Failed to get_symbol_prices of ADA/USDT on 1m: AuthenticationError on coinbase GET https://api.coinbase.com/api/v3/brokerage/products/ADA-USDT/candles?granularity=ONE_MINUTE&start=1712579617&end=1712597617 401 Unauthorized Unauthorized##

Expected behavior
No errors in logs, and trading, buy / sell should be working.

// paste your log here

ccxt.base.errors.AuthenticationError: coinbase GET https://api.coinbase.com/api/v3/brokerage/orders/historical/batch?order_status=OPEN&product_id=ADA-USDT&limit=100 401 Unauthorized Unauthorized
2024-04-08 12:40:26 DEBUG OHLCVUpdater[coinbase] logging_util.py:182 Missing candles in request results for ADA/USDT on TimeFrames.ONE_MINUTE, refreshing in 10 seconds (available candles: []).
2024-04-08 12:40:37 DEBUG OHLCVUpdater[coinbase] logging_util.py:182 Missing candles in request results for ADA/USDT on TimeFrames.ONE_MINUTE, refreshing in 10 seconds (available candles: []).
2024-04-08 12:40:47 WARNING OHLCVUpdater[coinbase] logging_util.py:200 Failed to get_symbol_prices of ADA/USDT on 1m: AuthenticationError on coinbase GET https://api.coinbase.com/api/v3/brokerage/products/ADA-USDT/candles?granularity=ONE_MINUTE&start=1712579747&end=1712597747 401 Unauthorized Unauthorized
2024-04-08 12:40:49 DEBUG OHLCVUpdater[coinbase] logging_util.py:182 Missing candles in request results for ADA/USDT on TimeFrames.ONE_MINUTE, refreshing in 10 seconds (available candles: []).
2024-04-08 12:40:54 WARNING RecentTradeUpdater[coinbase] logging_util.py:200 Failed to get_recent_trades coinbase GET https://api.coinbase.com/api/v3/brokerage/products/ADA-USDT/ticker?limit=20 401 Unauthorized Unauthorized

@GuillaumeDSM
Copy link
Member

Hey @Vegas10128
This looks like a permission error. Did you enable all necessary permissions on your coinbase api key ?

@Vegas10128
Copy link
Author

Hey @Vegas10128 This looks like a permission error. Did you enable all necessary permissions on your coinbase api key ?

Hi there,
Pretty sure I did, however i will check and see again and get back with you on this.

@Vegas10128
Copy link
Author

Hey @Vegas10128 This looks like a permission error. Did you enable all necessary permissions on your coinbase api key ?

Yes, everything in coinbase api permissions has been approved via permissions.

@Vegas10128
Copy link
Author

Sorry, didnt mean to open an issue,
After a couple of days looking into the issue, I found out a couple things.
I have to log back into coinbase and edit the api key then save permissions which fixed this issue,
I also found out the chains for each crypto were not set correctly.

Now everything is working.

@GuillaumeDSM
Copy link
Member

Great, thank you for your feedback @Vegas10128 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants