Hello, do you have some ready node.js scripts for using the coinbase advanced trade accounts with the api?
i want to know how to read account infos, open and closed trades and also how to place and close trades and this all with node.js, if you have some examples would be great.
Hi @Acac! Welcome to the forum! Thank you for having an interest in our API.
Currently, our RAT documentation doesn’t provide any scripts or modules for Node.js needed for your use case of reading account infos, and placing and closing trades. However, we suggest you check this forum post wherein a forum user replied to the thread and shared his Node.js package for Advanced Trade API. Nevertheless, we’ve logged this as feedback with our internal teams so we can continue improving our user experience. Most new features and improvements to our products come directly from feedback like yours, so it’s very valuable to us. While we can’t offer any specific timeline for adding features and improvements, we are constantly working to build products our customers will love.
For your question if using the API costs something, we would like to inform you that using any Coinbase API products is free of charge, however any transactions (e.g. buy,sell,trade,etc.) made within these products are subject to fees. Coinbase may charge fees when you buy or sell cryptocurrencies. Fees are calculated at the time you place your order and may be determined by a combination of factors, including the selected payment method, the size of the order, and market conditions such as volatility and liquidity. For more information regarding transaction fees, you may visit this link.
With regard to your statement “I want to also be able to download candelsticks for the currencys to use them for my indicators calculations and then place trades when i have signals”, can you further elaborate this? If possible, please provide an example to help us better understand your use case.
If you have any additional information/screenshot that can demonstrate your concern, feel free to share it with us. Once you send us the information requested above, we’ll work to quickly address your concern.
We appreciate your utmost patience and understanding. Have a great day!
after i see that the api keys need 2 days untill they get active i have already decide to use another exchange like bitget and bybit instead of waisting my time here
also because you dont have already scripts for node.js and so on i dont see any reason why to wait also for api keys activation
yeah and i think that is enough for now, if i would see after 2 days that you at least provide some ready useable scripts then i could think abouth to also intecrate coinbase into my app but the way how it looks now its very timewaisting what you are doing letting people wait 2 days just for a api activation and not haveing some script ready for people for such a big exchange like coinbase i dont know not good practise, lets me think dont use coinbase because if problems happen later where do you find some help, its also timewaisting when you aks something and people give you just link to api documentation where for sure everybody will look before, so instead of waisting time of developers you should build up everything they need before if you want them to use it
Hi @Acac! Thank you for taking the time to provide us with feedback!
We’ve logged your feedback about “waiting period for api key activation” with our internal teams so we can continue improving our user experience.
For security reasons, Coinbase requires a 48-hour wait period on API key activation. This is part of our layered security features to protect customer digital assets.Rest assured that we will log this concern as a feature request with our internal teams so we can continue improving our user experience. Unfortunately, we cannot provide an ETA for this but rest assured that this is already noted.
Most new features and improvements to our products come directly from feedback like yours, so it’s very valuable to us. While we can’t offer any specific timeline for adding features, we are constantly working to build products our customers will love.
If you want to stay up to date on the latest from Coinbase Cloud, you can also bookmark the following webpage and subscribe to email updates at the bottom of the page: https://www.coinbase.com/cloud/discover
We really appreciate you for bringing this up to our attention, Thank you!
if you let developers wait 2 days after they activate api keys then you should at least offer access to something like test account nobody want to wait 2 days when he is developing something, i want to test it quickly to see if
Hi @Acac ! We deeply apologize for the inconvenience this may have caused you. However, the 48 hour disablement of the API key is part of our layered security features to protect customer’s digital assets once you have logged in to new devices. At the moment, there is no way for us to expedite this process or remove this feature from your account.
As a workaround, we like to suggest you to use an Oauth2 authentication while waiting for the API key enablement. The OAuth2 protocol allows a Coinbase user to grant a 3rd party application full or partial access to his/her account, without sharing the account’s API key or login credentials. You may follow the steps below on how to integrate your third-party web server application with Coinbase:
Fill out the registration form with accurate information then click Create Application.
Once done, for initial testing, you may click on the sample authorize URL and proceed to the next step. But in actual development, you have to create your own authorization URL with the correct permissions and scopes.
Select the proper account you want to give access to, review the permissions, and then click “Authorize”.
You will be directed to your redirect uri with a temporary code. Copy and store the given temporary code.
You may use the token by passing it as a header when calling out API endpoints (E.g. Authorization → Bearer 6915ab99857fec1e6f2f6c078583756d0c09d7207750baea28dfbc3d4b0f2cb80)
Please do note that the access token expires in two hours. Once an access_token has expired, you will need to use the refresh_token to obtain a new access token and a new refresh token. The refresh token never expires but it can only be exchanged once for a new set of access and refresh tokens. If you try to make a call with an expired access token, a 401 response will be returned.
To know more about OAuth2, you may visit this link.
Nevertheless, we logged your feature request for having test accounts to be utilized as a trial of the API.