Created for the Blox assignment (https://weareblox.com/), built using VueJS 2.6 In this project I basically imitated the behavior in their other website, BTC direct, for displaying realtime price statistics of selected cryptocurrencies. While doing this, I thoroughly studied their API and used it for what I needed.
npm install
npm run serve
npm run build
Please request access from the this hosted cors anywhere proxy in order to test locally
https://cors-anywhere.herokuapp.com/corsdemo
CoinTable component, requires prop "config" to be passed Graph component (currently contained in Home.vue, didn't have the time to component it), acts in conjuction with CoinTable emits.
to round difference: Math.round((diff * 100)) / 100;
https://app-backend.btcdirect.eu/api/prices/
Request URL: https://cmd.btcdirect.eu/v2/history/rates-graph/BTC/EUR Returns a 2-dimensional array with timestamp, price values
https://cmd.btcdirect.eu/v2/market-data/ZEC/EUR?datapoints[]=1y
returns { roi: { 1y: value } }