aido / AidoATP

Reference Implementation of IsisATP from the Open Payments Alliance
GNU General Public License v3.0
39 stars 25 forks source link

Show amount of profit made since start of program. #3

Closed theblazehen closed 11 years ago

theblazehen commented 11 years ago

Show amount of profit you would have made eg. subtract value of all currencies from total value of currencies that you have now.

aido commented 11 years ago

Does aidoATP not do this already?

theblazehen commented 11 years ago

AFAIK you need to tail -f the log file to see it On Apr 28, 2013 10:34 PM, "Aido" notifications@github.com wrote:

Does aidoATP not do this already?

— Reply to this email directly or view it on GitHubhttps://github.com/aido/AidoATP/issues/3#issuecomment-17142088 .

aido commented 11 years ago

Hi theblazehen,

Here's the code that prints profit/loss:

log.info("Equivalent BTC Start Balance: "+equivBTCStartBal.withScale(8,RoundingMode.HALF_EVEN).toString()+" Equivalent BTC Current Balance: "+equivBTCEndBal.withScale(8,RoundingMode.HALF_EVEN).toString()); log.info("BTC Profit/Loss: "+profitBTC.withScale(8,RoundingMode.HALF_EVEN).toString()+" Percentage Profit/Loss: "+profitToDisplay);

log.info means it prints to both screen and log file. log.debug would mean just the log file.