I can see from the documentation of Exchange/Pro’s /currencies endpoint that not all currencies being returned by the said endpoint are used for trading.
so, how do i get the list of cryptocurrencies that are currently used for trading via API? thanks in advance for your help
Hi @goodboy! We understand that you want to get a list of tradable assets with Coinbase Pro/Exchange. With this, we’d like to direct you to the /currencies endpoint that lists all known currencies. Please note that not all currencies listed in this endpoint are currently supported by Coinbase. To know whether a specific currency is tradable, you can check on the status parameter of the currency. If it states “online,” then that currency is supported.
For example, if you call for the API endpoint querying BTC (GET https://api.exchange.coinbase.com/currencies/BTC 1), you’ll see that the status is online. To get a general list of all currencies, you may just call the base endpoint https://api.exchange.coinbase.com/currencies 1.
If it’s an endpoint that readily lists all tradable assets that you want, unfortunately, this is currently not available. And so, the only workaround for this is the aforementioned endpoint. However, if this is really the specific feature you are trying to find, we would like to recommend that you post this in the Feedback Section of the Forum as most new features and improvements to Coinbase come directly from feedback like yours, so it’s very valuable to us.
To know more about the said endpoint please visit our documentation at Get all known currencies 2
We hope we were able to help you out with your concern. Feel free to reply back to us should you have further clarifications or additional concerns.