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

Coinbase sandbox #22241

Open
1 task done
lo-zed opened this issue Apr 22, 2024 · 3 comments
Open
1 task done

Coinbase sandbox #22241

lo-zed opened this issue Apr 22, 2024 · 3 comments
Assignees

Comments

@lo-zed
Copy link

lo-zed commented Apr 22, 2024

Preliminary Checks

  • I have already searched for existing issues and confirmed that this issue is not a duplicate

Is your feature request related to a problem? Please describe

Coinbase recently released their sandbox feature: https://docs.cloud.coinbase.com/exchange/docs/sandbox but it is not implemented.

Describe the solution you'd like

Integrate the sandbox API in CCXT.

Describe alternatives you've considered

I tried adding the url manually:

coinbase = ccxt.coinbase(...)
coinbase.urls['test'] = {'rest':  'https://api-public.sandbox.exchange.coinbase.com'}
coinbase.set_sandbox_mode(True)
coinbase.load_markets()

But I get an error:

ccxt.base.errors.AuthenticationError: coinbase GET https://api-public.sandbox.exchange.coinbase.com/v2/currencies 401 Unauthorized {"message":"Unauthorized."}
@carlosmiei carlosmiei self-assigned this Apr 22, 2024
@carlosmiei
Copy link
Collaborator

Hello @lo-zed, thanks for bringing our attention to this we will take a look asap.

@carlosmiei
Copy link
Collaborator

@lo-zed Unfortunately the sandbox in that page represents the "regular Coinbase API sandbox" and not the advanced Coinbase sandbox.

@lo-zed
Copy link
Author

lo-zed commented Apr 22, 2024

@carlosmiei Thank you for your answer. That's unfortunate. Aren't some endpoints available on the regular api?

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

No branches or pull requests

2 participants