Jbays / crypto-calculator

Calculates profitability for crypto assets
0 stars 0 forks source link

build-testing required #10

Open Jbays opened 6 years ago

Jbays commented 6 years ago

After a change in code, a suite of tests should check that functionality remains.

Functionality:

  1. updatePrice.js updates ten cryptocurrencies with latest prices(usd).
  2. updateBalancePurchase.js calculates the sums of all usd-to-crypto purchase. Calculates sum for each cryptocurrency. Enters info in balance table.
  3. updateBalanceTrades.js calculates sums of all crypto1-to-crypto2 trades. Calculates sum for each cryptocurrency. Enters info in balance table.

Each cryptocurrency in balances table should have defined values for (1) weighted_usd_per_unit and (2) liquid_units.