Skip to content

A front end client to search for and display various crypto currency charts.

Notifications You must be signed in to change notification settings

mistergjones/CryptoTrak

Repository files navigation

CryptoTrak - A simple & easy to use Crypto tracker website

Table of contents

Overview

The challenge

The challenge was to utilise a free / basic rate limited Crypto API to showcase prices.

Utilising the same API, it was prudent to also decomonstrate the use of charts with defined functions to calculate RSI / Bollinger bands.

Screenshot

Example screenshot

Links

The process

  • The process was to simply find a free Crpyto API with endpoints that could be used to source historical data so price and charts can be rendered to the screen.

Built with

  • Semantic HTML5 markup
  • CSS Grid
  • chartjs
  • coincap.io API
  • anychartjs
  • lottie
  • custom functions for chart calculations

What was learnt

  1. Really enjoyed defining my own mathematical functions to calculate moving averages and RSI. The function below demonstrates the requirement to push a rolling 14 day average into an array for subsequent use.
function calculateFirst14DayAverage(movingAverageDays, theDataArray) {
    var tempArray = [];
    var runningTotal = 0;
    for (i = 0; i < movingAverageDays; i++) {
        runningTotal = runningTotal + theDataArray[i];
    }

    tempArray.push(runningTotal / movingAverageDays);

    return tempArray;
}

Continued development

Chartjs has no native CandleStick chart so the use of anychartjs was required. Perhaps forking Chartjs and creating a candlestick card for them will be really useful.

Authors

About

A front end client to search for and display various crypto currency charts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published