Code Challenge

Task Description

Write a simple web app in Ruby or Elixir showing price history of BTC and ETH on CoinJar Exchange. The application should:

  • Capture the prices when a "Capture" button is triggered. This should save prices of 2 currencies into the database. (Tip: you want to capture the freshest prices as possible here)
  • View a list of currencies and the latest prices.
  • Click a link and see the history of captured prices of a currency in descending order (by time).
  • Capture the price of ​last,​ ​bid​ and a​ sk​.

Other points of interest:

  • Allow for between 2 - 4 hours to complete this, however time is not important but rather quality.
  • Tests

API

You may use the CoinJar Exchange ticker API. The endpoints you will need are:

Example response

{
"volume_24h": "83.85000000",
"volume": "19.71000000",
"transition_time": "2018-06-21T07:50:00Z", "status": "continuous",
"session": 3190,
"prev_close": "9211.00000000",
"last": "9210.00000000",
"current_time": "2018-06-21T02:08:23.832377Z",
"bid": "9211.00000000",
"ask": "9242.00000000"
}