• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

API for DASH exchange rate

zoepfe

New member
Hi there

I'm looking for an API to get the current value of DASH. I'm using the yahoo finance API for other cryptocurrencys. There I can make a request to get the exchange rate from e.g. 1 BTC to USD.

Unfortunately DASH seems not been listed by yahoo. Do you known any API where I can make such kind of request for free?

Thanks in advance!
zoepfe
 
Hi @zoepfe

Hoping that this pastebin can help you :
https://pastebin.com/JpvcSDLL

It allows you to, using cryptocompare API, have a fetching of BTC price using syntax way :

rates['BTC']=(await cryptocompare.priceOf('BTC').in('USD').fetch()).USD.toString();

(I didn't referenced requesterJSON, because such a feature can be done using axios, requestify or similar library)
 
Back
Top