I am trying to write a simple application to track profits from purchased cryptocurrencies. I am currently using Coinbase API and here is my problem.
Coinbase provides an endpoint that returns a list of all coins but including normal currencies something like https://api.coinbase.com/v2/currencies
I use it to list in the add currency tab all coins and when user selects the currency, I send a request for a price of a given currency.
Coinbase provides request for price like
https://api.coinbase.com/v2/prices/BTC-EUR/spot
so I concatenate this link in this way
https://api.coinbase.com/v2/prices/ + coin.getSymbol() + -EUR/spot
,
but when user selects for example AED then I receive 404 code.
And here is my question:
Is there any possibility to send a request which will return only cryptocurrencies so I can avoid this problem? Or maybe I'm doing it wrong and I should approach it from a different angle
I am also open to changing api but so far I have only found coinmarketcap which allows only six request per minute.