MikaLendingBot icon indicating copy to clipboard operation
MikaLendingBot copied to clipboard

loan profit after period? (notification?)

Open chriscrutt opened this issue 8 years ago • 4 comments

Discussion/enhancement

In slack there is no notification for when a lending period has ended.

Could this be added? and include maybe (example):

0.02428794 BTC loan ended after 1.46 days at a rate of 0.0264% You earned a profit of 0.00000795731 BTC

so includes:

Amount_Loaned Currency loan ended after Period days at a rate of Rate * 100% You earned a profit of Money_Earned Currency

I dont know if Money_Earned can be fetched from the API as a variable, if not would you just do, Amount_Loaned * Period * Rate * (1-fee) = Money_Earned

FYI for Bitfinex there is a 15% fee for loans so it would be 1 - 0.15 = 0.85

Maybe there's even another way.

Just an idea! Maybe can be implemented in the bot's web-server as well or other things.

Thanks!

chriscrutt avatar Oct 12 '17 03:10 chriscrutt

This should be easily done by extending the AccountStats plug-in.

rnevet avatar Oct 12 '17 10:10 rnevet

Sweet, should I go ahead an close this or wait for a commit/PR? @rnevet

chriscrutt avatar Oct 12 '17 22:10 chriscrutt

Usually closing feature request is done when a feature is implemented. ;).

Personally I don't have time at the moment.

rnevet avatar Oct 14 '17 20:10 rnevet

no problem, we all have lives haha. Just an idea for the future

chriscrutt avatar Oct 14 '17 23:10 chriscrutt