New Coinbase API

piro21343243
Posts: 4
Joined: Thu Apr 18, 2024 4:35 pm

New Coinbase API

Post by piro21343243 » Thu Apr 18, 2024 6:19 pm

Hi,

Coinbase has updated its API and it seems that it is no longer compatible with Bookmap.

Can anyone validate? (APIs generated before the change still work, but new ones don't) I can't get a connection in Bookmap.

Thank you

 
Last edited by piro21343243 on Tue Apr 30, 2024 4:21 pm, edited 1 time in total.

andriil
Posts: 5
Joined: Thu Oct 26, 2023 7:36 am

Re: New Coinbase API

Post by andriil » Mon Apr 22, 2024 9:19 am

Hi,

Thank you for the report.

I checked the connectivity with new API Key and it doesn't work, so we indeed need to update our Coinbase integration in order to be compatible with new API Keys.

We will update our integration and post a reply here when it's done.

andriil
Posts: 5
Joined: Thu Oct 26, 2023 7:36 am

Re: New Coinbase API

Post by andriil » Fri Apr 26, 2024 9:40 am

Hi,

The integration has been fixed. It should now work with both old and new API keys.

piro21343243
Posts: 4
Joined: Thu Apr 18, 2024 4:35 pm

Re: New Coinbase API

Post by piro21343243 » Fri Apr 26, 2024 2:09 pm

                                                                                                            
Last edited by piro21343243 on Tue Apr 30, 2024 4:23 pm, edited 1 time in total.

andriil
Posts: 5
Joined: Thu Oct 26, 2023 7:36 am

Re: New Coinbase API

Post by andriil » Mon Apr 29, 2024 10:42 am

Hi,

Yes, you should copy/paste the whole "name" as API key and whole "privateKey" as API secret.

These fields are present in the "coinbase_cloud_api_key.json" file that Coinbase downloads automatically when you create a new API key.

Also, if you have provided a real Private key in the example, please invalidate it in Coinbase, since it's a security risk for you. These keys should not be shared with anybody.

piro21343243
Posts: 4
Joined: Thu Apr 18, 2024 4:35 pm

Re: New Coinbase API

Post by piro21343243 » Mon Apr 29, 2024 7:37 pm

hi andriil,

thank you for the info, it doesn't work for me not sure why but this the error : Unable to login. Error parsing API secret. Please check your credentials. I've tried several sets of keys and reinstalled Bookmap.

No, the private key is a fake
 

andriil
Posts: 5
Joined: Thu Oct 26, 2023 7:36 am

Re: New Coinbase API

Post by andriil » Tue Apr 30, 2024 9:00 am

The new line symbols "\n" should be copied as is. There is a possibility that file interpreter that you are using is copying those as separate symbols "\" and "n". If that is the case, you can create a text file, manually replace "\n" symbols with new lines and then copy-paste the result.

Also, we will think about the ways to improve this flow in the future. Maybe the option of selecting a credentials file would be good.

piro21343243
Posts: 4
Joined: Thu Apr 18, 2024 4:35 pm

Re: New Coinbase API

Post by piro21343243 » Tue Apr 30, 2024 1:21 pm

Hi,

I've just tried this method and other similar variants.

It ends up crashing bookmap with a critical error.

"A Critical error has occured.
Restarting Bookmap is recommended, since potential effects can't be predicted.
However, you can try to continue at your own risk (not recommended if Bookmap is connected to any live trading accounts)"

Let me know if you want the full report.

Thank you

andriil
Posts: 5
Joined: Thu Oct 26, 2023 7:36 am

Re: New Coinbase API

Post by andriil » Tue Apr 30, 2024 1:35 pm

Yes, please reach out to support regarding this at [email protected]. We will need to see log files to investigate the issue, support is going to be able to assist you on where to find them. Feel free to attach this forum thread as a point of reference.

Post Reply