This git is the code responsible for SteemPrices.com maintained by @jasonmcz and @zackcoburn
Read more here: announcement link
Currently we have the following pairs on the site from the above exchange APIs:
BTC-USD
USD-STEEM
BTC-SBD
BTC-STEEM
ETH-STEEM
USD-SBD
In addition, we are providing the same pair cross-exchange arbitrage opportunities:
Followed by the following formula
$scope.getArbi = function(num1,num2,num3) {
var highest = Math.max.apply(null, [num1,num2,num3]);
var lowest = Math.min.apply(null, [num1,num2,num3]);
var arbi = Number(highest) - Number(lowest);
return arbi
}
To get you started you can simply clone the repository and install the dependencies:
You can get git from https://github.com/JasonMcz/steemprices.
run git clone https://github.com/JasonMcz/steemprices.git
get into the directory:
cd steemprices
run sudo npm install
run bower install (might require root)
run sh run.sh
Note:
babel-node get_data.js
babel-node get_market.js
sleep 30 \\change if you need more frequent pricing update. now set as half minute.