MikaLendingBot
MikaLendingBot copied to clipboard
loan profit after period? (notification?)
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!
This should be easily done by extending the AccountStats plug-in.
Sweet, should I go ahead an close this or wait for a commit/PR? @rnevet
Usually closing feature request is done when a feature is implemented. ;).
Personally I don't have time at the moment.
no problem, we all have lives haha. Just an idea for the future