Clone repo
git clone https://github.com/kodaxx/DashRates-API.git dashrates-api
Change into directory
cd dashrates-api
Install NPM packages
npm install
Start server
npm run start
-
https://host.com/currency
https://api.get-spark.com/usd
-
{ "USD": 156.2038601617581 }
If a currency is not supported, you will receive an empty object
-
https://host.com/currency1/currency2
https://api.get-spark.com/usd/eur
-
{ "USD": 156.2038601617581, "EUR": 137.0866747655785 }
This endpoint is useful for if you need more than one rate.
-
https://host.com/list
https://api.get-spark.com/list
-
{ "AED": 574.026572712993, "AFN": 11788.882458857015, "ALL": 17080.119937199943, "AMD": 75628.34761208357, "ANG": 276.3735334656629, "AOA": 47947.766240431934, "ARS": 5726.825290792548, "AUD": 220.44862876746885 // +159 more }
This endpoint returns an object with every supported currency, in alphabetical order.
There are currently 167 supported exchange rates.
-
https://host.com/avg
https://api.get-spark.com/avg
-
0.02474
This is the average DASH price across Binance, Kraken, Poloniex, and Bitfinex
-
https://host.com/btcaverage
https://api.get-spark.com/btcaverage
-
0.02412598
-
https://host.com/poloniex
https://api.get-spark.com/poloniex
-
0.024089169894995932
This is an average of the price paid for the last 200 trades on Poloniex
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNH, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XAG, XAU, XCD, XDR, XOF, XPD, XPF, XPT, YER, ZAR, ZMW, ZWL