Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

API for DASH exchange rate

Discussion in 'Development Tech Discussion' started by zoepfe, Oct 6, 2017.

  1. zoepfe

    zoepfe New Member

    Joined:
    Oct 6, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. zoepfe

    zoepfe New Member

    Joined:
    Oct 6, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    #2 zoepfe, Oct 6, 2017
    Last edited by a moderator: Oct 6, 2017
  3. alex9

    alex9 Member

    Joined:
    Feb 4, 2017
    Messages:
    57
    Likes Received:
    7
    Trophy Points:
    48
  4. Obusco

    Obusco Member
    Core Developer

    Joined:
    Sep 23, 2016
    Messages:
    41
    Likes Received:
    53
    Trophy Points:
    58
    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)