Skip to content

A simple Node module works out profit loss on Ether - the blockchain based currency.

Notifications You must be signed in to change notification settings

joeyaza/eth-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eth-calc

A simple Node module which takes a buy date, sell date and amount sold and works out profit loss on Ether - the blockchain based currency.

NPM install and require such as…

const calculateEthPrice = require(‘./index');

then call using

calculateEthPrice(buyDate, sellDate, amount).then(function(result) {
  return result;
})  

e.g..

const calculateEthPrice = require('./index'); calculateEthPrice(1452680400,1452546400,100).then(function(result) { console.log(result); // for testing return result; })

About

A simple Node module works out profit loss on Ether - the blockchain based currency.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published